diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2f6c0f5cf..97c6fa0b6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,10 +69,10 @@ jobs: bun test src/hooks/session-recovery/recover-tool-result-missing.test.ts # legacy-plugin-toast mock isolation (hook.test.ts mocks ./auto-migrate) bun test src/hooks/legacy-plugin-toast/hook.test.ts - # src/plugin — ALL isolated (mock.module pollution crosses between files) - for f in src/plugin/*.test.ts; do bun test "$f"; done - # src/features/background-agent — ALL isolated (mock.module pollution) - for f in src/features/background-agent/*.test.ts; do bun test "$f"; done + # src/plugin - ALL isolated (mock.module pollution crosses between files) + for f in $(find src/plugin -name '*.test.ts' | sort); do bun test "$f"; done + # src/features/background-agent - ALL isolated (mock.module pollution) + for f in $(find src/features/background-agent -name '*.test.ts' | sort); do bun test "$f"; done - name: Run remaining tests run: | diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 89327c71a..3847e59d4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -70,10 +70,10 @@ jobs: bun test src/hooks/session-recovery/recover-tool-result-missing.test.ts # legacy-plugin-toast mock isolation (hook.test.ts mocks ./auto-migrate) bun test src/hooks/legacy-plugin-toast/hook.test.ts - # src/plugin — ALL isolated (mock.module pollution crosses between files) - for f in src/plugin/*.test.ts; do bun test "$f"; done - # src/features/background-agent — ALL isolated (mock.module pollution) - for f in src/features/background-agent/*.test.ts; do bun test "$f"; done + # src/plugin - ALL isolated (mock.module pollution crosses between files) + for f in $(find src/plugin -name '*.test.ts' | sort); do bun test "$f"; done + # src/features/background-agent - ALL isolated (mock.module pollution) + for f in $(find src/features/background-agent -name '*.test.ts' | sort); do bun test "$f"; done - name: Run remaining tests run: |