Skip to content

Commit a8b5a53

Browse files
committed
Remove cookbook resolver
Also no reason to use a resolver here, which is an unstable Node API. Instead use --require to import the bundled polyfill, and --eval to create a global assert() function.
1 parent 813a377 commit a8b5a53

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

polyfill/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"scripts": {
1010
"test": "node ./test/all.mjs",
1111
"test-cookbook": "npm run build && TEST=all npm run test-cookbook-one",
12-
"test-cookbook-one": "node --loader ./test/resolve.cookbook.mjs ../docs/cookbook/$TEST.mjs",
12+
"test-cookbook-one": "node --require=./script.js --eval='globalThis.assert = require(`node:assert`).strict' ../docs/cookbook/$TEST.mjs",
1313
"test262": "npm run build262 && node runtest262.mjs",
1414
"codecov:test262": "./ci_codecov_test262.sh",
1515
"build": "rollup -c rollup.config.js --bundleConfigAsCjs",

polyfill/test/resolve.cookbook.mjs

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)