Skip to content

Commit

Permalink
Bump kcd-scripts to 13.0.0 (#1209)
Browse files Browse the repository at this point in the history
* Bump kcd-scripts to 13.0.0

* Fix Jest warnings
  • Loading branch information
eps1lon authored Jan 29, 2023
1 parent 6e2e864 commit 25dc8a9
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 11 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@
"jest-in-case": "^1.0.2",
"jest-snapshot-serializer-ansi": "^1.0.0",
"jest-watch-select-projects": "^2.0.0",
"jsdom": "19.0.0",
"kcd-scripts": "^12.3.0",
"jsdom": "20.0.0",
"kcd-scripts": "^13.0.0",
"typescript": "^4.1.2"
},
"eslintConfig": {
Expand Down
10 changes: 5 additions & 5 deletions src/__tests__/suggestions.js
Original file line number Diff line number Diff line change
Expand Up @@ -612,8 +612,8 @@ test('should suggest hidden option if element is not in the accessibility tree',
suggestion.toString()

expect(console.warn.mock.calls).toMatchInlineSnapshot(`
Array [
Array [
[
[
Element is inaccessible. This means that the element and all its children are invisible to screen readers.
If you are using the aria-hidden prop, make sure this is the right choice for your case.
,
Expand Down Expand Up @@ -649,9 +649,9 @@ test('should find label text using the aria-labelledby', () => {
warning: '',
},
`
Object {
queryArgs: Array [
Object {},
{
queryArgs: [
{},
],
queryMethod: getByLabelText,
queryName: LabelText,
Expand Down
11 changes: 9 additions & 2 deletions tests/jest.config.dom.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
const path = require('path')
const baseConfig = require('kcd-scripts/jest')
const {
// global config options that would trigger warnings in project configs
collectCoverageFrom,
watchPlugins,
...baseConfig
} = require('kcd-scripts/jest')

module.exports = {
const projectConfig = {
...baseConfig,
rootDir: path.join(__dirname, '..'),
displayName: 'dom',
Expand All @@ -12,3 +17,5 @@ module.exports = {
],
testEnvironment: 'jest-environment-jsdom',
}

module.exports = projectConfig
11 changes: 9 additions & 2 deletions tests/jest.config.node.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
const path = require('path')
const baseConfig = require('kcd-scripts/jest')
const {
// global config options that would trigger warnings in project configs
collectCoverageFrom,
watchPlugins,
...baseConfig
} = require('kcd-scripts/jest')

module.exports = {
const projectConfig = {
...baseConfig,
rootDir: path.join(__dirname, '..'),
displayName: 'node',
Expand All @@ -13,3 +18,5 @@ module.exports = {
],
testMatch: ['**/__node_tests__/**.js'],
}

module.exports = projectConfig

0 comments on commit 25dc8a9

Please sign in to comment.