ci: isolate mock-heavy test files to prevent parallel pollution
This commit is contained in:
parent
9b59ef66e4
commit
897eea0263
7
.github/workflows/publish.yml
vendored
7
.github/workflows/publish.yml
vendored
@ -46,7 +46,12 @@ jobs:
|
|||||||
BUN_INSTALL_ALLOW_SCRIPTS: "@ast-grep/napi"
|
BUN_INSTALL_ALLOW_SCRIPTS: "@ast-grep/napi"
|
||||||
|
|
||||||
- name: Run tests
|
- 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:
|
typecheck:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user