ci: isolate mock-heavy test files to prevent parallel pollution
This commit is contained in:
7
.github/workflows/publish.yml
vendored
7
.github/workflows/publish.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user