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 27.2.5 to 27.3.0 #5600

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 18, 2021

⚠️ Dependabot is rebasing this PR ⚠️

Rebasing might not happen immediately, so don't worry if this takes some time.

Note: if you make any changes to this PR yourself, they will take precedence over the rebase.


Bumps jest from 27.2.5 to 27.3.0.

Release notes

Sourced from jest's releases.

27.3.0

Features

  • [jest-config] Add testEnvironmentOptions.html to apply to jsdom input (11950)
  • [jest-resolver] Support default export (.) in exports field if main is missing (#11919)

Fixes

  • [expect] Tweak and improve types (#11949)
  • [jest-runtime] Ensure absolute paths can be resolved within test modules (#11943)
  • [jest-runtime] Fix instanceof for ModernFakeTimers and LegacyFakeTimers methods (#11946)

New Contributors

Full Changelog: jestjs/jest@v27.2.5...v27.3.0

Changelog

Sourced from jest's changelog.

27.3.0

Features

  • [jest-config] Add testEnvironmentOptions.html to apply to jsdom input (11950)
  • [jest-resolver] Support default export (.) in exports field if main is missing (#11919)

Fixes

  • [expect] Tweak and improve types (#11949)
  • [jest-runtime] Ensure absolute paths can be resolved within test modules (#11943)
  • [jest-runtime] Fix instanceof for ModernFakeTimers and LegacyFakeTimers methods (#11946)
Commits
  • 14b0c2c v27.3.0
  • 3a29c79 chore: update changelog for release
  • 934a563 chore: do not delete files used in test
  • bc3c921 feat: support . in exports field (#11919)
  • b5aec03 chore(resolver): reuse cached lookup of package.json files (#11969)
  • 696c472 chore: add GH Action that autocloses question issues
  • 7ffa4f8 chore: apply correct labels for new issues
  • ed132a6 chore: remove unnecessary empty.d.ts (#11966)
  • 7f39f0a feat(environment-jsdom): allow passing html content to jsdom environment (#11...
  • ae1f04b Add type tests for all expect matchers (#11949)
  • 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 pr: dependencies relates to dependencies label Oct 18, 2021
Bumps [jest](https://github.com/facebook/jest) from 27.2.5 to 27.3.0.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](jestjs/jest@v27.2.5...v27.3.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/v14/jest-27.3.0 branch from a1ce6f2 to d7f63ad Compare October 18, 2021 07:34
@ybiquitous
Copy link
Member

Same issue? jestjs/jest#11977

@ybiquitous
Copy link
Member

We can fix this issue via the following change of node_modules/expect/build/jestMatchersObject.js:

@@ -100,12 +100,8 @@
         }
       }
 
-      Object.defineProperty(expect, key, {
-        value: (...sample) => new CustomMatcher(false, ...sample)
-      });
-      Object.defineProperty(expect.not, key, {
-        value: (...sample) => new CustomMatcher(true, ...sample)
-      });
+      expect[key] = (...sample) => new CustomMatcher(false, ...sample);
+      expect.not[key] = (...sample) => new CustomMatcher(true, ...sample);
     }
   });
   Object.assign(global[JEST_MATCHERS_OBJECT].matchers, matchers);

So, it seems better to wait for the next version of Jest.

Base automatically changed from v14 to master October 21, 2021 13:36
@jeddy3 jeddy3 closed this Oct 21, 2021
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Oct 21, 2021

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@jeddy3 jeddy3 deleted the dependabot/npm_and_yarn/v14/jest-27.3.0 branch October 21, 2021 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: dependencies relates to dependencies
Development

Successfully merging this pull request may close these issues.

None yet

2 participants