Skip to content

Commit c3f9b10

Browse files
committed
test(rollup-plugin-html): migrate from mocha/chai to node:test
Replace mocha/chai with node:test and node:assert/strict across all 9 test files (139 tests). Update test script to use node --experimental-strip-types --test. Change source imports to dist imports and use import type for type-only imports. Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 597fb32 commit c3f9b10

10 files changed

Lines changed: 1826 additions & 1439 deletions

packages/rollup-plugin-html/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
"demo:mpa": "rm -rf demo/dist && rollup -c demo/mpa/rollup.config.js --watch & npm run serve-demo",
2929
"demo:spa": "rm -rf demo/dist && rollup -c demo/spa/rollup.config.js --watch & npm run serve-demo",
3030
"serve-demo": "node ../dev-server/dist/bin.js --watch --root-dir demo/dist --app-index index.html --compatibility none --open",
31-
"test:node": "mocha test/**/*.test.ts --require ts-node/register --reporter dot",
32-
"test:watch": "mocha test/**/*.test.ts --require ts-node/register --watch --watch-files src,test"
31+
"test:node": "node --experimental-strip-types --test --test-force-exit 'test/**/*.test.ts'"
3332
},
3433
"files": [
3534
"*.js",

0 commit comments

Comments
 (0)