ci: isolate mock-heavy test files to prevent parallel pollution

This commit is contained in:
justsisyphus
2026-01-28 01:00:17 +09:00
parent 9b59ef66e4
commit 897eea0263

View File

@@ -46,7 +46,12 @@ jobs:
BUN_INSTALL_ALLOW_SCRIPTS: "@ast-grep/napi"
- name: Run tests
run: bun test
run: |
# Run tests that use mock.module() separately to avoid pollution
bun test src/plugin-handlers/config-handler.test.ts
bun test src/hooks/compaction-context-injector/index.test.ts
# Run all other tests (excluding already-run mock-heavy files)
bun test --ignore '**/config-handler.test.ts' --ignore '**/compaction-context-injector/index.test.ts'
typecheck:
runs-on: ubuntu-latest