Skip to content

build(deps-dev): bump nock from 14.0.17 to 15.0.1 - #2239

Merged
ricellis merged 4 commits into
mainfrom
dependabot-npm_and_yarn-nock-15.0.1
Oct 14, 2026
Merged

ricellis merged 4 commits into
mainfrom
dependabot-npm_and_yarn-nock-15.0.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Bumps nock from 14.0.17 to 15.0.1.

Release notes

Sourced from nock's releases.

v15.0.1

15.0.1 (2026-10-06)

Bug Fixes

v15.0.0

Released by accident, please use continue using v14 or v15@beta

v15.0.0-beta.16

15.0.0-beta.16 (2026-10-05)

Bug Fixes

  • remove interceptor from scope.interceptors on nock.removeInterceptor (#2997) (1ee467c)

v15.0.0-beta.15

15.0.0-beta.15 (2026-09-21)

... (truncated)

Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Oct 14, 2026
@dependabot
dependabot Bot requested a review from a team as a code owner October 14, 2026 03:42
@dependabot
dependabot Bot force-pushed the dependabot-npm_and_yarn-nock-15.0.1 branch from bd05455 to 4e0d9a5 Compare October 14, 2026 08:33
dependabot Bot and others added 3 commits October 14, 2026 13:58
Bumps [nock](https://github.com/nock/nock) from 14.0.17 to 15.0.1.
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md)
- [Commits](nock/nock@v14.0.17...v15.0.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
Jest needs --experimental-vm-modules to be able to do ESM require since it doesn't use Node's own package loader
@ricellis
ricellis force-pushed the dependabot-npm_and_yarn-nock-15.0.1 branch from 33a9fc3 to d0ee8d6 Compare October 14, 2026 13:00
The Jest require ESM support only works on Node 24+. Since Nock 15 is ESM only the errorReeponseInterceptor tests will not trivially work with Nock 15 and Node 22.
Since Node 22 is EOL in Apr 27 we can skip the tests in this version combination and just keep testing on 24/26.
@ricellis
ricellis force-pushed the dependabot-npm_and_yarn-nock-15.0.1 branch from d0ee8d6 to 3caadd4 Compare October 14, 2026 14:10
@ricellis

Copy link
Copy Markdown
Member

Notes on what I added to dependabot's nock 15 update:

  1. const nock = require('nock'); -> const { default: nock } = require('nock'); in line with Nock 15 migration guide
  2. Update test scripts in package.json to add NODE_OPTIONS=--experimental-vm-modules (I also reduced the duplication and removed some things we didn't use here to avoid needing to add the option 7 times). This flag is needed for jest's own package loader to do require on ESM only modules (like Nock 15).
  3. Node 22 doesn't have the APIs that jest's loader uses for that ^ so disable the single nock test file on Node 22 (which is EOL in a few months anyway) - we still have test coverage on 24/26. I needed to exclude the test file before the load, so jest config moves from package.json into jest.config.js so it can check the Node version and toggle an ignore.

@ricellis
ricellis merged commit 37a21a3 into main Oct 14, 2026
8 checks passed
@ricellis
ricellis deleted the dependabot-npm_and_yarn-nock-15.0.1 branch October 14, 2026 15:58
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 javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants