Skip to content

Commit e091b77

Browse files
committed
fix(dev-server-legacy): add --experimental-strip-types to test script
CI sets NODE_OPTIONS='--no-experimental-strip-types' to support un-migrated mocha+ts-node packages. The CLI flag overrides NODE_OPTIONS, letting migrated .ts test files run with native type stripping. Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c847210 commit e091b77

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/dev-server-legacy/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"scripts": {
2828
"build": "tsc",
2929
"start": "wds --open --config demo/server.config.mjs",
30-
"test:node": "node --test --test-force-exit test/**/*.test.ts",
31-
"test:watch": "node --test --test-force-exit --watch test/**/*.test.ts"
30+
"test:node": "node --experimental-strip-types --test --test-force-exit test/**/*.test.ts",
31+
"test:watch": "node --experimental-strip-types --test --test-force-exit --watch test/**/*.test.ts"
3232
},
3333
"files": [
3434
"*.d.ts",

0 commit comments

Comments
 (0)