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

Update JS unit testing packages #21605

Merged
merged 4 commits into from
Nov 1, 2021
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 1, 2021

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@testing-library/jest-dom 5.12.0 -> 5.14.1 age adoption passing confidence
jest (source) ^27.2.4 -> 27.3.1 age adoption passing confidence
jest (source) 27.0.4 -> 27.3.1 age adoption passing confidence
jest-circus-allure-environment 1.1.0 -> 1.1.1 age adoption passing confidence
jest-environment-jsdom ^27.0.6 -> 27.3.1 age adoption passing confidence
mocha (source) 8.2.1 -> 8.4.0 age adoption passing confidence
nock 13.0.7 -> 13.1.4 age adoption passing confidence
sinon-chai 3.5.0 -> 3.7.0 age adoption passing confidence

Release Notes

testing-library/jest-dom

v5.14.1

Compare Source

Bug Fixes

v5.14.0

Compare Source

Features
  • toHaveAccessibleName and toHaveAccessibleDescription (#​377) (87ffd2a)

v5.13.0

Compare Source

Features
facebook/jest

v27.3.1

Compare Source

Fixes
  • [expect] Make expect extension properties configurable (#​11978)
  • [expect] Fix .any() checks on primitive wrapper classes (#​11976)
Chore & Maintenance
  • [expect] BigInt global is always defined, don't check for its existence at runtime (#​11979)
  • [jest-config, jest-util] Use ci-info instead of is-ci to detect CI environment (#​11973)

v27.3.0

Compare Source

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)

v27.2.5

Compare Source

Features
  • [jest-config] Warn when multiple Jest configs are located (#​11922)
Fixes
  • [expect] Pass matcher context to asymmetric matchers (#​11926 & #​11930)
  • [expect] Improve TypeScript types (#​11931)
  • [expect] Improve typings of toThrow() and toThrowError() matchers (#​11929)
  • [jest-cli] Improve --help printout by removing defunct --browser option (#​11914)
  • [jest-haste-map] Use distinct cache paths for different values of computeDependencies (#​11916)
  • [@jest/reporters] Do not buffer console.logs when using verbose reporter (#​11054)
Chore & Maintenance
  • [expect] Export default matchers (#​11932)
  • [@jest/types] Mark deprecated configuration options as @deprecated (#​11913)

v27.2.4

Compare Source

Features
  • [expect] Add equality checks for Array Buffers in expect.ToStrictEqual() (#​11805)
Fixes
  • [jest-snapshot] Correctly indent inline snapshots (#​11560)

v27.2.3

Compare Source

Features
  • [@jest/fake-timers] Update @sinonjs/fake-timers to v8 (#​11879)
Fixes
  • [jest-config] Parse testEnvironmentOptions if received from CLI (#​11902)
  • [jest-reporters] Call destroy on v8-to-istanbul converters to free memory (#​11896)

v27.2.2

Compare Source

Fixes
  • [jest-runtime] Correct wrapperLength value for ESM modules. (#​11893)

v27.2.1

Compare Source

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)

v27.2.0

Compare Source

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)

v27.1.1

Compare Source

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)

v27.1.0

Compare Source

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.

v27.0.6

Compare Source

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

v27.0.5

Compare Source

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)
ryparker/jest-circus-allure-environment

v1.1.1

Compare Source

Bug Fixes
  • (xo linter): fixed linter errors (70e6e01)
mochajs/mocha

v8.4.0

Compare Source

🎉 Enhancements

🐛 Fixes

📖 Documentation

Also thanks to @​outsideris for various improvements on our GH actions workflows.

v8.3.2

Compare Source

🐛 Fixes

📖 Documentation

v8.3.1

Compare Source

🐛 Fixes

v8.3.0

Compare Source

🎉 Enhancements

🐛 Fixes

📖 Documentation

🔩 Other

Also thanks to @​outsideris and @​HyunSangHan for various fixes to our website and documentation.

nock/nock

v13.1.4

Compare Source

Bug Fixes

v13.1.3

Compare Source

Bug Fixes

v13.1.2

Compare Source

Bug Fixes

v13.1.1

Compare Source

Bug Fixes
  • types: allow readonly arrays for data matcher in types (#​2215) (940f4b7)

v13.1.0

Compare Source

Features

v13.0.11

Compare Source

Bug Fixes
  • interceptor: don't require leading slash if Scope has a base pathname (#​2168) (bfbbbb7)

v13.0.10

Compare Source

Bug Fixes

v13.0.9

Compare Source

Bug Fixes
  • playback: consistently check for destroyed attribute (#​2152) (b9758c8)

v13.0.8

Compare Source

Bug Fixes
domenic/sinon-chai

v3.7.0

Compare Source

  • No longer check for the max sinon version (#​150)

v3.6.0

Compare Source

  • Add support for sinon 10 (#​149)

Configuration

📅 Schedule: "before 3am on the first day of the month" in timezone UTC.

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Renovate will not automatically rebase this PR, because other commits have been found.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate renovate bot added [Status] Needs Review To request a review from fellow Jetpack developers. Label will be renamed soon. [Type] Janitorial labels Nov 1, 2021
@matticbot
Copy link
Contributor

Caution: This PR has changes that must be merged to WordPress.com
Hello renovate[bot]! These changes need to be synced to WordPress.com - If you 're an a11n, please commandeer and confirm D69364-code works as expected before merging this PR. Once this PR is merged, please commit the changes to WP.com. Thank you!
This revision will be updated with each commit to this PR

@github-actions github-actions bot added [Package] Connection UI This package no longer exists in the monorepo. [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Tools] Development CLI The tools/cli to assist during JP development. E2E Tests labels Nov 1, 2021
@anomiex
Copy link
Contributor

anomiex commented Nov 1, 2021

@adimoldovan Any idea why this is breaking the E2E tests?

@adimoldovan
Copy link
Member

@adimoldovan Any idea why this is breaking the E2E tests?

@anomiex Looks like jest-circus-allure-environment version 1.1.1 breaks the tests. We should stick to 1.1.0 for now.

Copy link
Contributor

@anomiex anomiex left a comment

Choose a reason for hiding this comment

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

Yeah, looks like that did it. I see ryparker/jest-circus-allure-environment#197 looks like it may be about the same issue.

@anomiex anomiex merged commit 18b2094 into master Nov 1, 2021
@anomiex anomiex deleted the renovate/js-unit-testing-packages branch November 1, 2021 19:50
@github-actions github-actions bot removed the [Status] Needs Review To request a review from fellow Jetpack developers. Label will be renamed soon. label Nov 1, 2021
@github-actions github-actions bot added this to the jetpack/10.3 milestone Nov 1, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Nov 1, 2021

Great news! One last step: head over to your WordPress.com diff, D69364-code, and commit it.
Once you've done so, come back to this PR and add a comment with your changeset ID.

Thank you!

@anomiex
Copy link
Contributor

anomiex commented Nov 1, 2021

r234289-wpcom

davidlonjon added a commit that referenced this pull request Nov 2, 2021
…ng-formatting

* master:
  docker: Add script to create "fake" translations for testing i18n (#21407)
  Add webpack-config package (#21482)
  Update dependency composer/semver to v3.2.6 (#21608)
  Update dependency eslint-plugin-import to v2.25.2 (#21607)
  Update JS unit testing packages (#21605)
  Admin page: Fix pricing/currency displayed on the upgrade page (#21594)
  Update dependency @rollup/plugin-node-resolve to v13.0.6 (#21599)
  Publicize: Add new publicize icon toggle component (#20957)
  Search: hide search menu for atomic sites (#21565)
  Allow /wp/v2/sites/1234/batch endpoint to process widget updates (#21549)
  tooling: Add `.mjs` as a JavaScript extension (#21589)
  Jetpack: PHPCS src/class-tracking (#21583)
  Publicize: make the default social media message blank (#21477)
davidlonjon added a commit that referenced this pull request Nov 2, 2021
* master:
  docker: Add script to create "fake" translations for testing i18n (#21407)
  Add webpack-config package (#21482)
  Update dependency composer/semver to v3.2.6 (#21608)
  Update dependency eslint-plugin-import to v2.25.2 (#21607)
  Update JS unit testing packages (#21605)
  Admin page: Fix pricing/currency displayed on the upgrade page (#21594)
  Update dependency @rollup/plugin-node-resolve to v13.0.6 (#21599)
  Publicize: Add new publicize icon toggle component (#20957)
  Search: hide search menu for atomic sites (#21565)
  Allow /wp/v2/sites/1234/batch endpoint to process widget updates (#21549)
  tooling: Add `.mjs` as a JavaScript extension (#21589)
  Jetpack: PHPCS src/class-tracking (#21583)
  Publicize: make the default social media message blank (#21477)
davidlonjon added a commit that referenced this pull request Nov 2, 2021
* master: (40 commits)
  docker: Add script to create "fake" translations for testing i18n (#21407)
  Add webpack-config package (#21482)
  Update dependency composer/semver to v3.2.6 (#21608)
  Update dependency eslint-plugin-import to v2.25.2 (#21607)
  Update JS unit testing packages (#21605)
  Admin page: Fix pricing/currency displayed on the upgrade page (#21594)
  Update dependency @rollup/plugin-node-resolve to v13.0.6 (#21599)
  Publicize: Add new publicize icon toggle component (#20957)
  Search: hide search menu for atomic sites (#21565)
  Allow /wp/v2/sites/1234/batch endpoint to process widget updates (#21549)
  tooling: Add `.mjs` as a JavaScript extension (#21589)
  Jetpack: PHPCS src/class-tracking (#21583)
  Publicize: make the default social media message blank (#21477)
  Photon: do not serve Wikipedia images from CDN. (#21572)
  Publicize: update endpoint (#21510)
  [Plugin] Backup: Update initial backup screen (#21559)
  RNA Connect Screen: Remove unused files (#21570)
  RNA Connection: Add ConnectScreenRequiredPlan Component (#21521)
  Update PHPUnit coverage configs (#21557)
  cli: Fix skeleton phpunit config (#21555)
  ...
@jeherve jeherve modified the milestones: jetpack/10.3, jetpack/10.4 Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E2E Tests [Package] Connection UI This package no longer exists in the monorepo. [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Tools] Development CLI The tools/cli to assist during JP development. Touches WP.com Files [Type] Janitorial
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants