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 jest from 26.6.3 to 27.1.0 #112

Merged
merged 4 commits into from
Sep 3, 2021

Conversation

dependabot[bot]
Copy link
Contributor

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

Bumps jest from 26.6.3 to 27.1.0.

Release notes

Sourced from jest's releases.

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

  • [docs] Correct expects.assertions documentation by adding async/await for asynchronous function.

27.0.6

Fixes

  • [*] Publish all modules to include the build change in #11569

27.0.5

Features

  • [@jest/fake-timers] Flush callbacks scheduled with requestAnimationFrame every 16ms when using legacy timers. (#11523)
  • [pretty-format] Use globalThis (with polyfill if required) to bring support for esbuild's browser bundling mode (#11569

Fixes

  • [jest-core] Support special characters like @, + and () on Windows with --findRelatedTests (#11548)
  • [@jest/fake-timers] Do not add setImmediate and clearImmediate if they do not exist in the global environment (#11599)
  • [@jest/reporters] Allow node-notifier@10 as peer dependency (#11523)
  • [@jest/reporters] Update v8-to-istanbul (#11523)

27.0.4

Fixes

  • [jest-config, jest-resolve] Pass in require.resolve to resolvers to resolve from correct base (#11493)

27.0.3

Fixes

  • [jest-config] require.resolve on default test sequencer and test environment (#11482)
  • [jest-mock] Fixed fn and spyOn exports (#11480)

... (truncated)

Changelog

Sourced from jest's changelog.

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

  • [docs] Correct expects.assertions documentation by adding async/await for asynchronous function.

27.0.6

Fixes

  • [*] Publish all modules to include the build change in (#11569)

27.0.5

Features

  • [@jest/fake-timers] Flush callbacks scheduled with requestAnimationFrame every 16ms when using legacy timers. (#11523)
  • [pretty-format] Use globalThis (with polyfill if required) to bring support for esbuild's browser bundling mode (#11569)

Fixes

  • [jest-core] Support special characters like @, + and () on Windows with --findRelatedTests (#11548)
  • [@jest/fake-timers] Do not add setImmediate and clearImmediate if they do not exist in the global environment (#11599)
  • [@jest/reporters] Allow node-notifier@10 as peer dependency (#11523)
  • [@jest/reporters] Update v8-to-istanbul (#11523)

27.0.4

Fixes

  • [jest-config, jest-resolve] Pass in require.resolve to resolvers to resolve from correct base (#11493)

27.0.3

... (truncated)

Commits
  • 5ef792e v27.1.0
  • d4b0546 chore: update changelog for release
  • 38558a8 chore(ci): use "latest" version of the OSes on Azure Pipelines (#11793)
  • 554d7d2 feat(resolver): support node: prefix when loading core modules (#11331)
  • 499ef4f [jest-each] Relaxed the validation to allow multibyte characters in headings ...
  • d455d2d [jest-haste-map] Use more optimal suffix-set format (#11784)
  • c8b8ce2 chore: fix typo in examples (#11788)
  • 39190ea fix(jest-types): compat with @​types/node v16 (#11645)
  • 321e8d5 chore: fix PnP test by forcing older version of typescript
  • d38156c chore: replace issue templates with forms (#11772)
  • Additional commits viewable in compare view

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)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Sep 2, 2021
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/jest-27.1.0 branch 3 times, most recently from b4653b2 to 9de64ba Compare September 3, 2021 00:49
Bumps [jest](https://github.com/facebook/jest) from 26.6.3 to 27.1.0.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](jestjs/jest@v26.6.3...v27.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/jest-27.1.0 branch from 9de64ba to eb7dd0c Compare September 3, 2021 00:53
@m-yoshiro
Copy link
Contributor

ts-jestをアプデしてみよう
kulshekhar/ts-jest#2612 (comment)

@m-yoshiro
Copy link
Contributor

jest動くようになった。
あとは v26 → v27 で必要な修正やればよさそう

Copy link
Contributor

@m-yoshiro m-yoshiro left a comment

Choose a reason for hiding this comment

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

以下の対応を行いました。

  • ts-jest, testing-library/react のアプデ
  • jestの設定追加

@@ -4,5 +4,6 @@
"^.+\\.tsx?$": "ts-jest"
},
"setupFilesAfterEnv": ["<rootDir>/src/setupTest.ts"],
"testPathIgnorePatterns": ["<rootDir>/lib/"]
"testPathIgnorePatterns": ["<rootDir>/lib/"],
"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.

@@ -46,7 +46,7 @@
"@storybook/addon-essentials": "^6.2.9",
"@storybook/react": "^6.3.7",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^11.2.5",
"@testing-library/react": "^12.0.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

clearImmediate is not defined てエラーが出たけどアプデしたら解決した。

@testing-library/dom 側だけど同じエラーのissueがあったので、真似した次第。
testing-library/dom-testing-library#899 (comment)

"jest-styled-components": "^7.0.5",
"prettier": "^2.3.2",
"ts-jest": "^26.5.6"
"ts-jest": "^27.0.5"
Copy link
Contributor

Choose a reason for hiding this comment

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

TypeErrorが出たけど、27以上にアプデしたら解決した。
kulshekhar/ts-jest#2612 (comment)

Copy link
Contributor

@kimromi kimromi left a comment

Choose a reason for hiding this comment

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

ありがとうございます!!

@m-yoshiro
Copy link
Contributor

@dependabot merge

@dependabot dependabot bot merged commit 6be08c2 into main Sep 3, 2021
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/jest-27.1.0 branch September 3, 2021 01:21
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.

None yet

2 participants