diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 104d3b64..f137cde7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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