From 951bca5399ef163f85b1f90dc3ffbf6ac326de81 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Wed, 1 Apr 2026 18:19:48 -0700 Subject: [PATCH] fix(ci): include nested test files in isolated test execution Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- .github/workflows/ci.yml | 8 ++++---- .github/workflows/publish.yml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) 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: |