Skip to content

Commit

Permalink
fix: unit testing
Browse files Browse the repository at this point in the history
  • Loading branch information
matthprost committed Jan 4, 2024
1 parent eae2c35 commit ef99093
Show file tree
Hide file tree
Showing 19 changed files with 670 additions and 10,509 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 @@ -78,7 +78,7 @@ exports[`SelectInputField should display right value on grouped options 1`] = `
fill: #641cb3;
}
.cache-blvxib-ValueContainer {
.cache-14yhqf7-Component {
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
Expand All @@ -100,7 +100,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 @@ -177,7 +177,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 @@ -290,7 +290,7 @@ exports[`SelectInputField should display right value on grouped options 1`] = `
class=" cache-j55ftc-control"
>
<div
class=" cache-blvxib-ValueContainer"
class=" cache-14yhqf7-Component"
>
<label
aria-live="assertive"
Expand Down Expand Up @@ -329,7 +329,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 @@ -448,7 +448,7 @@ exports[`SelectInputField should render correctly 1`] = `
fill: #641cb3;
}
.cache-blvxib-ValueContainer {
.cache-14yhqf7-Component {
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
Expand All @@ -470,7 +470,7 @@ exports[`SelectInputField should render correctly 1`] = `
padding-top: 0;
}
.cache-blvxib-ValueContainer label {
.cache-14yhqf7-Component label {
display: initial;
}
Expand Down Expand Up @@ -532,7 +532,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 @@ -645,7 +645,7 @@ exports[`SelectInputField should render correctly 1`] = `
class=" cache-j55ftc-control"
>
<div
class=" cache-blvxib-ValueContainer"
class=" cache-14yhqf7-Component"
>
<label
aria-live="assertive"
Expand Down Expand Up @@ -686,7 +686,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 @@ -790,7 +790,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 @@ -813,7 +813,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 @@ -875,7 +875,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 @@ -989,7 +989,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 @@ -1031,7 +1031,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 @@ -1145,7 +1145,7 @@ exports[`SelectInputField should render correctly multiple 1`] = `
fill: #641cb3;
}
.cache-blvxib-ValueContainer {
.cache-14yhqf7-Component {
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
Expand All @@ -1167,7 +1167,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 @@ -1228,7 +1228,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 @@ -1341,7 +1341,7 @@ exports[`SelectInputField should render correctly multiple 1`] = `
class=" cache-j55ftc-control"
>
<div
class=" cache-blvxib-ValueContainer"
class=" cache-14yhqf7-Component"
>
<label
aria-live="assertive"
Expand Down Expand Up @@ -1382,7 +1382,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 @@ -1503,7 +1503,7 @@ exports[`SelectInputField should render correctly with a disabled option 1`] = `
fill: #641cb3;
}
.cache-blvxib-ValueContainer {
.cache-14yhqf7-Component {
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
Expand All @@ -1525,7 +1525,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 @@ -1587,7 +1587,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 @@ -1700,7 +1700,7 @@ exports[`SelectInputField should render correctly with a disabled option 1`] = `
class=" cache-j55ftc-control"
>
<div
class=" cache-blvxib-ValueContainer"
class=" cache-14yhqf7-Component"
>
<label
aria-live="assertive"
Expand Down Expand Up @@ -1741,7 +1741,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 @@ -1860,7 +1860,7 @@ exports[`SelectInputField should trigger events 1`] = `
fill: #641cb3;
}
.cache-blvxib-ValueContainer {
.cache-14yhqf7-Component {
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
Expand All @@ -1882,7 +1882,7 @@ exports[`SelectInputField should trigger events 1`] = `
padding-top: 0;
}
.cache-blvxib-ValueContainer label {
.cache-14yhqf7-Component label {
display: initial;
}
Expand Down Expand Up @@ -1959,7 +1959,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 @@ -2072,7 +2072,7 @@ exports[`SelectInputField should trigger events 1`] = `
class=" cache-j55ftc-control"
>
<div
class=" cache-blvxib-ValueContainer"
class=" cache-14yhqf7-Component"
>
<label
aria-live="assertive"
Expand Down Expand Up @@ -2111,7 +2111,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 ef99093

Please sign in to comment.