diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 7627c212..34a9871c 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -27,7 +27,7 @@ jobs: run: npx playwright install --with-deps - name: Run Playwright Tests - run: npx playwright test + run: NODE_OPTIONS="--no-experimental-strip-types" npx playwright test - name: Upload Playwright Traces if: failure() diff --git a/e2e/decoder.spec.ts b/e2e/decoder.spec.ts index 27963f7d..dc6e7231 100644 --- a/e2e/decoder.spec.ts +++ b/e2e/decoder.spec.ts @@ -26,7 +26,7 @@ import { } from "./e2e.utils"; import { MessageStatusValue, MessageTypeValue } from "./e2e.values"; import { JwtDictionaryModel, JwtSignedWithDigitalModel } from "./e2e.models"; -import jwts from "./jwt.json" assert { type: "json" }; +import jwts from "./jwt.json" with { type: "json" }; const TestJwts = (jwts as JwtDictionaryModel).byAlgorithm; diff --git a/e2e/encoder.spec.ts b/e2e/encoder.spec.ts index 5cf26eec..1bf35f1c 100644 --- a/e2e/encoder.spec.ts +++ b/e2e/encoder.spec.ts @@ -15,7 +15,7 @@ import { getLang, switchToEncoderTab, } from "./e2e.utils"; -import jwts from "./jwt.json" assert { type: "json" }; +import jwts from "./jwt.json" with { type: "json" }; import { JwtDictionaryModel, JwtSignedWithDigitalModel, diff --git a/package.json b/package.json index 3ba940b8..4753da95 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "lint": "next lint", "test": "vitest", "coverage": "vitest run --coverage", - "playwright:test-ui": "npx playwright test --ui" + "playwright:test-ui": "NODE_OPTIONS=\"--no-experimental-strip-types\" npx playwright test --ui" }, "dependencies": { "@formatjs/intl-localematcher": "^0.5.7",