From dd1a8db1541743ac2522e72082d725f4cb9da3d4 Mon Sep 17 00:00:00 2001 From: FUJI Goro Date: Sun, 25 May 2025 10:05:42 +0900 Subject: [PATCH] add test:node_with_strip_types --- .github/workflows/ci.yml | 12 ++++++++++++ package.json | 1 + 2 files changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e26aaa9..101c3dc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -81,6 +81,18 @@ jobs: - run: bun install - run: npm run test:bun + node_with_strip_types: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + cache: npm + node-version: '24' + - run: npm ci + - run: npm run test:node_with_strip_types + timeline: runs-on: ubuntu-latest permissions: diff --git a/package.json b/package.json index e67d3fd..8dcbedd 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "test": "mocha 'test/**/*.test.ts'", "test:dist": "npm run lint && npm run test && npm run test:deno", "test:cover": "npm run cover:clean && npx nyc --no-clean npm run 'test' && npm run cover:report", + "test:node_with_strip_types": "node --experimental-strip-types test/deno_test.ts", "test:deno": "deno test --allow-read test/deno_*.ts", "test:bun": "bun test test/bun.spec.ts", "test:fuzz": "npm exec --yes -- jsfuzz@git+https://gitlab.com/gitlab-org/security-products/analyzers/fuzzers/jsfuzz.git#39e6cf16613a0e30c7a7953f62e64292dbd5d3f3 --fuzzTime 60 --no-versifier test/decode.jsfuzz.js corpus",