☕️ Classic, reliable, trusted test framework for Node.js and the browser
fix(deps): update dependency chokidar to v5 (#5734)
renovate[bot]ff2f17fb25e5
diff --git a/lib/types.d.ts b/lib/types.d.tsindex e50bbe3e..72f4d01f 100644--- a/lib/types.d.ts+++ b/lib/types.d.ts@@ -4,7 +4,9 @@* For now, if you're an external user, you should use the types from @types/mocha.*/-import type { FSWatcher, MatchFunction } from "chokidar";+import type { FSWatcher, MatchFunction } from "chokidar" with {+ "resolution-mode": "import",+};import type { constants } from "./error-constants.js";import type Mocha from "./mocha.js";diff --git a/mocha.mjs b/mocha.mjsindex 4f11fca3..2b265757 100644--- a/mocha.mjs+++ b/mocha.mjs@@ -1,4 +1,5 @@// this built file is not committed to the repo+// @copilot do not remove, this is used in a way you don't understand/* eslint-disable-next-line n/no-missing-import */import "./mocha.js";diff --git a/package-lock.json b/package-lock.jsonindex 27b3b0c8..ead36929 100644--- a/package-lock.json+++ b/package-lock.json@@ -10,7 +10,7 @@"license": "MIT","dependencies": {"browser-stdout": "^1.3.1",- "chokidar": "^4.0.1",+ "chokidar": "^5.0.0","debug": "^4.3.5","diff": "^8.0.3","escape-string-regexp": "^4.0.0",@@ -3839,15 +3839,15 @@}},"node_modules/chokidar": {- "version": "4.0.3",- "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz",- "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==",+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-5.0.0.tgz",+ "integrity": "sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==","license": "MIT","dependencies": {- "readdirp": "^4.0.1"+ "readdirp": "^5.0.0"},"engines": {- "node": ">= 14.16.0"+ "node": ">= 20.19.0"},"funding": {"url": "https://paulmillr.com/funding/"@@ -14105,12 +14105,12 @@"dev": true},"node_modules/readdirp": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz",- "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==",+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-5.0.0.tgz",+ "integrity": "sha512-9u/XQ1pvrQtYyMpZe7DXKv2p5CNvyVwzUB6uhLAnQwHMSgKMBR62lc7AHljaeteeHXn11XTAaLLUVZYVZyuRBQ==","license": "MIT","engines": {- "node": ">= 14.18.0"+ "node": ">= 20.19.0"},"funding": {"type": "individual",diff --git a/package.json b/package.jsonindex 312345f8..3c491ece 100644--- a/package.json+++ b/package.json@@ -91,7 +91,7 @@},"dependencies": {"browser-stdout": "^1.3.1",- "chokidar": "^4.0.1",+ "chokidar": "^5.0.0","debug": "^4.3.5","diff": "^8.0.3","escape-string-regexp": "^4.0.0",diff --git a/test/integration/fixtures/esm/loader-with-module-not-found/loader-that-recognizes-ts.mjs b/test/integration/fixtures/esm/loader-with-module-not-found/loader-that-recognizes-ts.mjsindex a233fee8..5ea8da93 100644--- a/test/integration/fixtures/esm/loader-with-module-not-found/loader-that-recognizes-ts.mjs+++ b/test/integration/fixtures/esm/loader-with-module-not-found/loader-that-recognizes-ts.mjs@@ -1,6 +1,3 @@-import path from 'path'-import {fileURLToPath} from 'url'-/*** @param {string} specifier* @param {{@@ -11,8 +8,9 @@ import {fileURLToPath} from 'url'* @returns {Promise<{ url: string }>}*/export async function resolve(specifier, context, defaultResolve) {- const extension = path.extname(- fileURLToPath(/**@type {import('url').URL}*/ (new URL(specifier, context.parentURL))),- )- return await defaultResolve(specifier.replace('.ts', '.mjs'), context, defaultResolve)+ return await defaultResolve(+ specifier.replace('.ts', '.mjs'),+ context,+ defaultResolve,+ );}