Skip to content

Commit 25dc8a9

Browse files
authored
Bump kcd-scripts to 13.0.0 (testing-library#1209)
* Bump kcd-scripts to 13.0.0 * Fix Jest warnings
1 parent 6e2e864 commit 25dc8a9

File tree

4 files changed

+25
-11
lines changed

4 files changed

+25
-11
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@
7474
"jest-in-case": "^1.0.2",
7575
"jest-snapshot-serializer-ansi": "^1.0.0",
7676
"jest-watch-select-projects": "^2.0.0",
77-
"jsdom": "19.0.0",
78-
"kcd-scripts": "^12.3.0",
77+
"jsdom": "20.0.0",
78+
"kcd-scripts": "^13.0.0",
7979
"typescript": "^4.1.2"
8080
},
8181
"eslintConfig": {

src/__tests__/suggestions.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -612,8 +612,8 @@ test('should suggest hidden option if element is not in the accessibility tree',
612612
suggestion.toString()
613613

614614
expect(console.warn.mock.calls).toMatchInlineSnapshot(`
615-
Array [
616-
Array [
615+
[
616+
[
617617
Element is inaccessible. This means that the element and all its children are invisible to screen readers.
618618
If you are using the aria-hidden prop, make sure this is the right choice for your case.
619619
,
@@ -649,9 +649,9 @@ test('should find label text using the aria-labelledby', () => {
649649
warning: '',
650650
},
651651
`
652-
Object {
653-
queryArgs: Array [
654-
Object {},
652+
{
653+
queryArgs: [
654+
{},
655655
],
656656
queryMethod: getByLabelText,
657657
queryName: LabelText,

tests/jest.config.dom.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
const path = require('path')
2-
const baseConfig = require('kcd-scripts/jest')
2+
const {
3+
// global config options that would trigger warnings in project configs
4+
collectCoverageFrom,
5+
watchPlugins,
6+
...baseConfig
7+
} = require('kcd-scripts/jest')
38

4-
module.exports = {
9+
const projectConfig = {
510
...baseConfig,
611
rootDir: path.join(__dirname, '..'),
712
displayName: 'dom',
@@ -12,3 +17,5 @@ module.exports = {
1217
],
1318
testEnvironment: 'jest-environment-jsdom',
1419
}
20+
21+
module.exports = projectConfig

tests/jest.config.node.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
const path = require('path')
2-
const baseConfig = require('kcd-scripts/jest')
2+
const {
3+
// global config options that would trigger warnings in project configs
4+
collectCoverageFrom,
5+
watchPlugins,
6+
...baseConfig
7+
} = require('kcd-scripts/jest')
38

4-
module.exports = {
9+
const projectConfig = {
510
...baseConfig,
611
rootDir: path.join(__dirname, '..'),
712
displayName: 'node',
@@ -13,3 +18,5 @@ module.exports = {
1318
],
1419
testMatch: ['**/__node_tests__/**.js'],
1520
}
21+
22+
module.exports = projectConfig

0 commit comments

Comments
 (0)