From 548557e33193fb456e946dcc89902ed15453805b Mon Sep 17 00:00:00 2001 From: Lexus Drumgold Date: Tue, 1 Oct 2024 19:50:47 -0400 Subject: [PATCH] chore(tests): `#tests/reporters/notifier` Signed-off-by: Lexus Drumgold --- .github/workflows/ci.yml | 6 ++++++ .github/workflows/typescript-canary.yml | 2 ++ vitest.config.ts | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 050b5c7e..a7149cdf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -286,6 +286,8 @@ jobs: - id: typecheck if: steps.test-files-check.outputs.files_exists == 'true' name: Run typecheck + env: + NODE_OPTIONS: --experimental-strip-types --experimental-transform-types run: yarn typecheck test: needs: @@ -333,6 +335,8 @@ jobs: - id: test if: steps.test-files-check.outputs.files_exists == 'true' name: Run tests + env: + NODE_OPTIONS: --experimental-strip-types --experimental-transform-types run: | yarn test:cov --coverage.thresholds.100=false \ && echo "coverage=$(jq '${{ env.PCT }}' ${{ env.COVERAGE_SUMMARY }} -r)" >>$GITHUB_OUTPUT @@ -377,6 +381,8 @@ jobs: steps.test-files-check.outputs.files_exists == 'true' && ${{ toJson(steps.test.outputs.coverage) }} != 400 name: Coverage threshold failure (${{ steps.test.outputs.coverage }}) + env: + NODE_OPTIONS: --experimental-strip-types --experimental-transform-types run: yarn test:cov:reports build: needs: diff --git a/.github/workflows/typescript-canary.yml b/.github/workflows/typescript-canary.yml index 34485a61..aff630c2 100644 --- a/.github/workflows/typescript-canary.yml +++ b/.github/workflows/typescript-canary.yml @@ -73,6 +73,8 @@ jobs: run: yarn build - id: typecheck name: Run typecheck + env: + NODE_OPTIONS: --experimental-strip-types --experimental-transform-types run: yarn typecheck - id: typecheck-build name: Run typecheck-build diff --git a/vitest.config.ts b/vitest.config.ts index 3bd79f4e..b1cf1e4b 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -4,6 +4,7 @@ * @see https://vitest.dev/config/ */ +import Notifier from '#tests/reporters/notifier' import ci from 'is-ci' import path from 'node:path' import { @@ -13,7 +14,6 @@ import { type UserConfigExport } from 'vitest/config' import { BaseSequencer, type WorkspaceSpec } from 'vitest/node' -import Notifier from './__tests__/reporters/notifier' import tsconfigJson from './tsconfig.test.json' /**