Skip to content

Commit e498901

Browse files
committed
Use the Node.js test runner API and remove the dev dependency test-director.
Note that the tests won’t run properly in Node.js v18 until the fix for this Node.js test runner bug is published in a v18 release: nodejs/node#48845
1 parent d991b57 commit e498901

File tree

4 files changed

+345
-338
lines changed

4 files changed

+345
-338
lines changed

changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
- Updated Node.js support to `^18.17.0 || >=20.4.0`.
88
- Updated dev dependencies, some of which require newer Node.js versions than previously supported.
9+
- Use the Node.js test runner API and remove the dev dependency [`test-director`](https://npm.im/test-director).
910
- Refactored tests to no longer polyfill the standard `AbortController`, `AbortSignal`, `Event`, `EventTarget`, and `performance` APIs available in modern Node.js and removed the dev dependencies [`abort-controller`](https://npm.im/abort-controller) and [`event-target-shim`](https://npm.im/event-target-shim).
1011

1112
### Patch

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,13 @@
6161
"puppeteer": "^21.4.1",
6262
"react": "^18.2.0",
6363
"react-dom": "^18.2.0",
64-
"test-director": "^11.0.0",
6564
"typescript": "^5.2.2"
6665
},
6766
"scripts": {
6867
"eslint": "eslint .",
6968
"prettier": "prettier -c .",
7069
"types": "tsc -p jsconfig.json",
71-
"tests": "NEXT_TELEMETRY_DISABLED=1 node test.mjs",
70+
"tests": "NEXT_TELEMETRY_DISABLED=1 node --test-reporter=spec --test",
7271
"test": "npm run eslint && npm run prettier && npm run types && npm run tests",
7372
"prepublishOnly": "npm test"
7473
}

test.mjs

-24
This file was deleted.

0 commit comments

Comments
 (0)