Skip to content

Commit b9f78c3

Browse files
authored
ci: add node --strip-types smoke test (google#920)
1 parent 411655b commit b9f78c3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/test.yml

+3
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ jobs:
170170
run: npm run test:smoke:cjs
171171
- name: mjs smoke test
172172
run: npm run test:smoke:mjs
173+
- name: strip-types
174+
if: matrix.node-version >= 22
175+
run: npm run test:smoke:strip-types
173176

174177
smoke-ts:
175178
runs-on: ubuntu-latest

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
"test:license": "node ./test/extra.test.js",
7777
"test:audit": "npm audit fix",
7878
"test:size": "size-limit",
79+
"test:smoke:strip-types": "node --experimental-strip-types test/smoke/ts.test.ts",
7980
"test:smoke:tsx": "tsx test/smoke/ts.test.ts",
8081
"test:smoke:tsc": "cd test/smoke && mkdir -p node_modules && ln -s ../../../ ./node_modules/zx; ../../node_modules/typescript/bin/tsc -v && ../../node_modules/typescript/bin/tsc --esModuleInterop --module node16 --rootDir . --outdir ./temp ts.test.ts && node ./temp/ts.test.js",
8182
"test:smoke:ts-node": "node --loader ts-node/esm test/smoke/ts.test.ts",

0 commit comments

Comments
 (0)