Skip to content

Commit

Permalink
Upgrade jest to 29 (#71)
Browse files Browse the repository at this point in the history
I enabled the old snapshot format, to verify nothing's breaking. It could be turned off if we want to use the new snapshot format, which is a bit clearer, I think.
  • Loading branch information
IanVS authored Oct 3, 2022
1 parent da35867 commit fbe5772
Show file tree
Hide file tree
Showing 4 changed files with 1,066 additions and 892 deletions.
2 changes: 1 addition & 1 deletion jest-transform.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('./dist/jest-transform');
module.exports = require('./dist/cjs/jest-transform');
6 changes: 5 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ module.exports = {
'!!raw-loader!.*': '<rootDir>/__mocks__/fileMock.js',
},
moduleFileExtensions: ['js', 'ts', 'svelte', 'json'],
testEnvironment: 'jest-environment-jsdom-thirteen',
testEnvironment: 'jest-environment-jsdom',
transformIgnorePatterns: ['node_modules/(?!(@storybook/svelte)/)'],
snapshotFormat: {
escapeString: true,
printBasicPrototype: true,
},
};
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@
"@storybook/eslint-config-storybook": "^3.1.2",
"@storybook/svelte": "^6.4.20",
"auto": "^10.3.0",
"babel-jest": "^26.6.3",
"babel-jest": "^29.1.0",
"babel-loader": "^8.1.0",
"chromatic": "^5.6.1",
"concurrently": "^6.2.0",
"eslint": "^7.17.0",
"jest": "^26.6.3",
"jest-environment-jsdom-thirteen": "^1.0.1",
"jest": "^29.1.1",
"jest-environment-jsdom": "^29.1.1",
"prettier": "^2.2.1",
"react": "^17.0.1",
"react-dom": "^17.0.1",
Expand Down
Loading

0 comments on commit fbe5772

Please sign in to comment.