Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump babel-jest from 24.9.0 to 27.2.1 #685

Merged
merged 4 commits into from
Sep 20, 2021

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 20, 2021

Bumps babel-jest from 24.9.0 to 27.2.1.

Release notes

Sourced from babel-jest's releases.

27.2.1

Features

  • [jest-transform] Improve the unexpected token error message. (#11807)

Fixes

  • [jest-runtime] Fix regression when using jest.isolateModules and mocks (#11882)
  • [jest-runtime] Include test name when importing modules after test has completed (#11885)
  • [jest-runtime] Error when ESM import is used after test is torn down (#11885)

27.2.0

Features

  • [jest-resolver, jest-runtime] Pass conditions to custom resolvers to enable them to implement support for package.json exports field (#11859)
  • [jest-runtime] Allow custom envs to specify exportConditions which is passed together with Jest's own conditions to custom resolvers (#11863)

Fixes

  • [@jest/reporters] Use async transform if available to transform files with no coverage (#11852)
  • [jest-util] Return correct value from process.send stub (#11799)

27.1.1

Features

  • [jest-runtime] Add experimental, limited (and undocumented) support for mocking ECMAScript Modules (#11818)

Fixes

  • [jest-resolver] Support node: prefix when importing Node core modules with ESM (#11817)
  • [jest-types] Export the PrettyFormatOptions interface (#11801)

27.1.0

Features

  • [jest-haste-map] Use watchman suffix-set option for faster file indexing. (#11784)
  • [jest-cli] Adds a new config options snapshotFormat which offers a way to override any of the formatting settings which come with pretty-format. (#11654)
  • [jest-reporters] Expose the getSummary util (#11695).
  • [jest-resolver] Support node: prefix when importing Node core modules (#11331)

Fixes

  • [jest-each] Relaxed the validation to allow multibyte characters in headings (#11575)
  • [jest-environment-jsdom] Add support for userAgent option (#11773)
  • [jest-environment-node] Add Event and EventTarget to node global environment. (#11727)
  • [jest-mock] Fix spyOn to use Object.prototype.hasOwnProperty (#11721)
  • [jest-resolver] Add dependency on jest-haste-map (#11759)
  • [jest-types] Compat with @types/node v16 (#11645)

Chore & Maintenance

... (truncated)

Changelog

Sourced from babel-jest's changelog.

27.2.1

Features

  • [jest-transform] Improve the unexpected token error message. (#11807)

Fixes

  • [jest-runtime] Fix regression when using jest.isolateModules and mocks (#11882)
  • [jest-runtime] Include test name when importing modules after test has completed (#11885)
  • [jest-runtime] Error when ESM import is used after test is torn down (#11885)

27.2.0

Features

  • [jest-resolver, jest-runtime] Pass conditions to custom resolvers to enable them to implement support for package.json exports field (#11859)
  • [jest-runtime] Allow custom envs to specify exportConditions which is passed together with Jest's own conditions to custom resolvers (#11863)

Fixes

  • [@jest/reporters] Use async transform if available to transform files with no coverage (#11852)
  • [jest-util] Return correct value from process.send stub (#11799)

27.1.1

Features

  • [jest-runtime] Add experimental, limited (and undocumented) support for mocking ECMAScript Modules (#11818)

Fixes

  • [jest-resolver] Support node: prefix when importing Node core modules with ESM (#11817)
  • [jest-types] Export the PrettyFormatOptions interface (#11801)

27.1.0

Features

  • [jest-haste-map] Use watchman suffix-set option for faster file indexing. (#11784)
  • [jest-cli] Adds a new config options snapshotFormat which offers a way to override any of the formatting settings which come with pretty-format. (#11654)
  • [jest-reporters] Expose the getSummary util (#11695).
  • [jest-resolver] Support node: prefix when importing Node core modules (#11331)

Fixes

  • [jest-each] Relaxed the validation to allow multibyte characters in headings (#11575)
  • [jest-environment-jsdom] Add support for userAgent option (#11773)
  • [jest-environment-node] Add Event and EventTarget to node global environment. (#11727)
  • [jest-mock] Fix spyOn to use Object.prototype.hasOwnProperty (#11721)

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by simenb, a new releaser for babel-jest since your current version.


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

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]>
@dependabot dependabot bot requested a review from a team September 20, 2021 13:44
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Sep 20, 2021
@dependabot dependabot bot requested a review from a team as a code owner September 20, 2021 17:35
This should ensure that things like `window` are defined
Copy link
Contributor

@bkjohnson bkjohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be good to go.

@@ -1,3 +1,3 @@
module.exports = require('babel-jest').createTransformer({
module.exports = require('babel-jest').default.createTransformer({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes the original issue with createTransformer not being found.

jestjs/jest#11444 (comment)

@@ -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",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes the next issue with cwd not being found. jest and babel-jest need to be on the same version.

jestjs/jest#7868 (comment)

},
testEnvironment: 'jsdom',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes the issue with window not being defined. The default environment is node, where things like window don't exist.

https://jestjs.io/docs/configuration#testenvironment-string

@k80bowman k80bowman merged commit 8f29b9e into master Sep 20, 2021
@k80bowman k80bowman deleted the dependabot/npm_and_yarn/babel-jest-27.2.1 branch September 20, 2021 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants