Skip to content

Commit

Permalink
fix: unit testing
Browse files Browse the repository at this point in the history
  • Loading branch information
matthprost committed Feb 26, 2024
1 parent 42e68e8 commit 1ace408
Show file tree
Hide file tree
Showing 20 changed files with 669 additions and 10,506 deletions.
2 changes: 1 addition & 1 deletion .jest/a11y.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const config: Config.InitialOptions = {
},
],
],
transformIgnorePatterns: ['node_modules/(?!@scaleway)/'],
transformIgnorePatterns: ['node_modules/(?!@scaleway|@nivo)/'],
testPathIgnorePatterns: ['/nodes_modules/', 'src/components'],
moduleNameMapper: {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
Expand Down
2 changes: 1 addition & 1 deletion .jest/unit.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const config = {
},
],
],
transformIgnorePatterns: ['node_modules/(?!(.*(@scaleway)))'],
transformIgnorePatterns: ['node_modules/(?!@scaleway|@nivo)/'],
modulePathIgnorePatterns: ['packages/ui/src/__tests__/a11y.test.tsx'],
moduleNameMapper: {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ exports[`SelectInputField should display right value on grouped options 1`] = `
border-color: #792dd4;
}
.cache-blvxib-ValueContainer {
.cache-14yhqf7-Component {
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
Expand All @@ -92,7 +92,7 @@ exports[`SelectInputField should display right value on grouped options 1`] = `
padding-top: 0;
}
.cache-blvxib-ValueContainer label {
.cache-14yhqf7-Component label {
display: initial;
}
Expand Down Expand Up @@ -169,7 +169,7 @@ exports[`SelectInputField should display right value on grouped options 1`] = `
padding: 0;
}
.cache-ralm3g-IndicatorsContainer {
.cache-1b81bwn-Component {
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
Expand Down Expand Up @@ -282,7 +282,7 @@ exports[`SelectInputField should display right value on grouped options 1`] = `
class=" cache-exqc6n-control"
>
<div
class=" cache-blvxib-ValueContainer"
class=" cache-14yhqf7-Component"
>
<label
aria-live="assertive"
Expand Down Expand Up @@ -321,7 +321,7 @@ exports[`SelectInputField should display right value on grouped options 1`] = `
</div>
</div>
<div
class=" cache-ralm3g-IndicatorsContainer"
class=" cache-1b81bwn-Component"
>
<span
class=" cache-dh2bvv-indicatorSeparator"
Expand Down Expand Up @@ -432,7 +432,7 @@ exports[`SelectInputField should render correctly 1`] = `
border-color: #792dd4;
}
.cache-blvxib-ValueContainer {
.cache-14yhqf7-Component {
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
Expand All @@ -454,7 +454,7 @@ exports[`SelectInputField should render correctly 1`] = `
padding-top: 0;
}
.cache-blvxib-ValueContainer label {
.cache-14yhqf7-Component label {
display: initial;
}
Expand Down Expand Up @@ -516,7 +516,7 @@ exports[`SelectInputField should render correctly 1`] = `
padding: 0;
}
.cache-ralm3g-IndicatorsContainer {
.cache-1b81bwn-Component {
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
Expand Down Expand Up @@ -629,7 +629,7 @@ exports[`SelectInputField should render correctly 1`] = `
class=" cache-exqc6n-control"
>
<div
class=" cache-blvxib-ValueContainer"
class=" cache-14yhqf7-Component"
>
<label
aria-live="assertive"
Expand Down Expand Up @@ -670,7 +670,7 @@ exports[`SelectInputField should render correctly 1`] = `
</div>
</div>
<div
class=" cache-ralm3g-IndicatorsContainer"
class=" cache-1b81bwn-Component"
>
<span
class=" cache-dh2bvv-indicatorSeparator"
Expand Down Expand Up @@ -774,7 +774,7 @@ exports[`SelectInputField should render correctly disabled 1`] = `
border-color: hsl(0, 0%, 70%);
}
.cache-1n25v7h-ValueContainer {
.cache-1qe543l-Component {
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
Expand All @@ -797,7 +797,7 @@ exports[`SelectInputField should render correctly disabled 1`] = `
padding-top: 0;
}
.cache-1n25v7h-ValueContainer label {
.cache-1qe543l-Component label {
display: initial;
}
Expand Down Expand Up @@ -859,7 +859,7 @@ exports[`SelectInputField should render correctly disabled 1`] = `
padding: 0;
}
.cache-ralm3g-IndicatorsContainer {
.cache-1b81bwn-Component {
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
Expand Down Expand Up @@ -973,7 +973,7 @@ exports[`SelectInputField should render correctly disabled 1`] = `
class=" cache-1469z79-control"
>
<div
class=" cache-1n25v7h-ValueContainer"
class=" cache-1qe543l-Component"
>
<label
aria-live="assertive"
Expand Down Expand Up @@ -1015,7 +1015,7 @@ exports[`SelectInputField should render correctly disabled 1`] = `
</div>
</div>
<div
class=" cache-ralm3g-IndicatorsContainer"
class=" cache-1b81bwn-Component"
>
<span
class=" cache-dh2bvv-indicatorSeparator"
Expand Down Expand Up @@ -1121,7 +1121,7 @@ exports[`SelectInputField should render correctly multiple 1`] = `
border-color: #792dd4;
}
.cache-blvxib-ValueContainer {
.cache-14yhqf7-Component {
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
Expand All @@ -1143,7 +1143,7 @@ exports[`SelectInputField should render correctly multiple 1`] = `
padding-top: 0;
}
.cache-blvxib-ValueContainer label {
.cache-14yhqf7-Component label {
display: initial;
}
Expand Down Expand Up @@ -1204,7 +1204,7 @@ exports[`SelectInputField should render correctly multiple 1`] = `
padding: 0;
}
.cache-ralm3g-IndicatorsContainer {
.cache-1b81bwn-Component {
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
Expand Down Expand Up @@ -1317,7 +1317,7 @@ exports[`SelectInputField should render correctly multiple 1`] = `
class=" cache-exqc6n-control"
>
<div
class=" cache-blvxib-ValueContainer"
class=" cache-14yhqf7-Component"
>
<label
aria-live="assertive"
Expand Down Expand Up @@ -1358,7 +1358,7 @@ exports[`SelectInputField should render correctly multiple 1`] = `
</div>
</div>
<div
class=" cache-ralm3g-IndicatorsContainer"
class=" cache-1b81bwn-Component"
>
<span
class=" cache-dh2bvv-indicatorSeparator"
Expand Down Expand Up @@ -1471,7 +1471,7 @@ exports[`SelectInputField should render correctly with a disabled option 1`] = `
border-color: #792dd4;
}
.cache-blvxib-ValueContainer {
.cache-14yhqf7-Component {
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
Expand All @@ -1493,7 +1493,7 @@ exports[`SelectInputField should render correctly with a disabled option 1`] = `
padding-top: 0;
}
.cache-blvxib-ValueContainer label {
.cache-14yhqf7-Component label {
display: initial;
}
Expand Down Expand Up @@ -1555,7 +1555,7 @@ exports[`SelectInputField should render correctly with a disabled option 1`] = `
padding: 0;
}
.cache-ralm3g-IndicatorsContainer {
.cache-1b81bwn-Component {
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
Expand Down Expand Up @@ -1668,7 +1668,7 @@ exports[`SelectInputField should render correctly with a disabled option 1`] = `
class=" cache-exqc6n-control"
>
<div
class=" cache-blvxib-ValueContainer"
class=" cache-14yhqf7-Component"
>
<label
aria-live="assertive"
Expand Down Expand Up @@ -1709,7 +1709,7 @@ exports[`SelectInputField should render correctly with a disabled option 1`] = `
</div>
</div>
<div
class=" cache-ralm3g-IndicatorsContainer"
class=" cache-1b81bwn-Component"
>
<span
class=" cache-dh2bvv-indicatorSeparator"
Expand Down Expand Up @@ -1820,7 +1820,7 @@ exports[`SelectInputField should trigger events 1`] = `
border-color: #792dd4;
}
.cache-blvxib-ValueContainer {
.cache-14yhqf7-Component {
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
Expand All @@ -1842,7 +1842,7 @@ exports[`SelectInputField should trigger events 1`] = `
padding-top: 0;
}
.cache-blvxib-ValueContainer label {
.cache-14yhqf7-Component label {
display: initial;
}
Expand Down Expand Up @@ -1919,7 +1919,7 @@ exports[`SelectInputField should trigger events 1`] = `
padding: 0;
}
.cache-ralm3g-IndicatorsContainer {
.cache-1b81bwn-Component {
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
Expand Down Expand Up @@ -2032,7 +2032,7 @@ exports[`SelectInputField should trigger events 1`] = `
class=" cache-exqc6n-control"
>
<div
class=" cache-blvxib-ValueContainer"
class=" cache-14yhqf7-Component"
>
<label
aria-live="assertive"
Expand Down Expand Up @@ -2071,7 +2071,7 @@ exports[`SelectInputField should trigger events 1`] = `
</div>
</div>
<div
class=" cache-ralm3g-IndicatorsContainer"
class=" cache-1b81bwn-Component"
>
<span
class=" cache-dh2bvv-indicatorSeparator"
Expand Down
Loading

0 comments on commit 1ace408

Please sign in to comment.