Skip to content

Commit

Permalink
Bump babel-jest from 24.9.0 to 27.2.1 (#685)
Browse files Browse the repository at this point in the history
* Bump babel-jest from 24.9.0 to 27.2.1

Bumps [babel-jest](https://github.com/facebook/jest/tree/HEAD/packages/babel-jest) from 24.9.0 to 27.2.1.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/commits/v27.2.1/packages/babel-jest)

---
updated-dependencies:
- dependency-name: babel-jest
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Get createTransformer from default export

* Use same version for `jest` and `babel-jest`

* Use jsdom as the test environment

This should ensure that things like `window` are defined

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Brooks Johnson <[email protected]>
  • Loading branch information
dependabot[bot] and bkjohnson authored Sep 20, 2021
1 parent 5cdd1e0 commit 8f29b9e
Show file tree
Hide file tree
Showing 4 changed files with 1,259 additions and 920 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"axe-core": "^4.3.3",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "^8.0.2",
"babel-jest": "^24.7.1",
"babel-jest": "^27.2.1",
"babel-loader": "^8.0.0",
"babel-plugin-dynamic-import-node": "^1.2.0",
"babel-plugin-istanbul": "^5.1.1",
Expand All @@ -74,7 +74,7 @@
"fs-extra": "^7.0.1",
"glob": "^7.1.2",
"is-docker": "^1.1.0",
"jest": "^24.7.1",
"jest": "^27.2.1",
"karma": "1.6",
"karma-chrome-launcher": "^2.2.0",
"karma-mocha": "^2.0.1",
Expand Down
3 changes: 2 additions & 1 deletion packages/formation/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
module.exports = {
transform: {
"^.+\\.js$": "<rootDir>/packages/formation/scripts/babel-transformer.js",
'^.+\\.js$': '<rootDir>/packages/formation/scripts/babel-transformer.js',
},
testEnvironment: 'jsdom',
rootDir: '../..',
testMatch: [`<rootDir>/packages/formation/__tests__/**/*.test.js`],
};
2 changes: 1 addition & 1 deletion packages/formation/scripts/babel-transformer.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = require('babel-jest').createTransformer({
module.exports = require('babel-jest').default.createTransformer({
rootMode: 'upward',
});
Loading

0 comments on commit 8f29b9e

Please sign in to comment.