Skip to content

Commit 0753b66

Browse files
committed
fix: use test-ci in CI workflow for correct build environment
The separate build + test:unit steps caused snapshot mismatches because pnpm build does not set VITEST=1, which gets inlined at build time. Using test-ci runs test:prepare (which builds with .env.test setting VITEST=1) followed by test:unit, matching local test behavior.
1 parent 240823a commit 0753b66

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,5 @@ jobs:
4545
with:
4646
node-version: ${{ matrix.node-version }}
4747

48-
- name: Build
49-
run: pnpm run build
50-
51-
- name: Run unit tests
52-
run: pnpm test:unit
48+
- name: Build and run unit tests
49+
run: pnpm test-ci

0 commit comments

Comments
 (0)