Skip to content

Commit

Permalink
fix: update snapshot and yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
guidari committed Aug 21, 2024
1 parent e7c9a7a commit 9d1e4ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 144 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/codecov-components.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Jest components

on:
push:
paths:
- "packages/react/src/components/**"
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -15,7 +13,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v2
with:
node-version: "20"
node-version: '20'
- name: Install requirements
run: npm install
- name: Run tests and collect coverage
Expand All @@ -25,4 +23,4 @@ jobs:
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
flags: jest-components
flags: jest-components
Original file line number Diff line number Diff line change
@@ -1,143 +1,5 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Accordion should render 1`] = `
<DocumentFragment>
<ul
class="cds--accordion extra-class cds--accordion--end"
>
<li
class="cds--accordion__item child"
>
<button
aria-controls="accordion-item-:r0:"
aria-expanded="false"
class="cds--accordion__heading"
type="button"
>
<svg
aria-hidden="true"
class="cds--accordion__arrow"
fill="currentColor"
focusable="false"
height="16"
preserveAspectRatio="xMidYMid meet"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z"
/>
</svg>
<div
class="cds--accordion__title"
dir="auto"
>
Heading A
</div>
</button>
<div
class="cds--accordion__wrapper"
hidden=""
>
<div
class="cds--accordion__content"
id="accordion-item-:r0:"
>
Panel A
</div>
</div>
</li>
<li
class="cds--accordion__item child"
>
<button
aria-controls="accordion-item-:r1:"
aria-expanded="false"
class="cds--accordion__heading"
type="button"
>
<svg
aria-hidden="true"
class="cds--accordion__arrow"
fill="currentColor"
focusable="false"
height="16"
preserveAspectRatio="xMidYMid meet"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z"
/>
</svg>
<div
class="cds--accordion__title"
dir="auto"
>
Heading B
</div>
</button>
<div
class="cds--accordion__wrapper"
hidden=""
>
<div
class="cds--accordion__content"
id="accordion-item-:r1:"
>
Panel B
</div>
</div>
</li>
<li
class="cds--accordion__item child"
>
<button
aria-controls="accordion-item-:r2:"
aria-expanded="false"
class="cds--accordion__heading"
type="button"
>
<svg
aria-hidden="true"
class="cds--accordion__arrow"
fill="currentColor"
focusable="false"
height="16"
preserveAspectRatio="xMidYMid meet"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z"
/>
</svg>
<div
class="cds--accordion__title"
dir="auto"
>
Heading C
</div>
</button>
<div
class="cds--accordion__wrapper"
hidden=""
>
<div
class="cds--accordion__content"
id="accordion-item-:r2:"
>
Panel C
</div>
</div>
</li>
</ul>
</DocumentFragment>
`;

exports[`Accordion should render test 1`] = `
<DocumentFragment>
<ul
Expand Down

0 comments on commit 9d1e4ec

Please sign in to comment.