diff --git a/script/run-ci-tests.ts b/script/run-ci-tests.ts index 35b5b142a..5466885ce 100644 --- a/script/run-ci-tests.ts +++ b/script/run-ci-tests.ts @@ -82,7 +82,17 @@ async function runBunTest(testFiles: string[], label: string): Promise { } console.log(`::group::${label}`) - const command = ["bun", "test", ...testFiles] + + // For directory paths, exclude _auc* directories which are separate isolated targets + const args = testFiles.map(tf => { + if (tf.includes('/') && !tf.endsWith('.test.ts')) { + // It's a directory path, add negation glob + return [tf, '!_auc-*/**/*.test.ts'] + } + return tf + }).flat() + + const command = ["bun", "test", ...args] const spawnedProcess = Bun.spawn(command, { cwd: process.cwd(), stdin: "inherit", diff --git a/src/hooks/_auc-mocks-bgupdate/background-update-check.test.ts b/src/hooks/_auc-mocks-bg/background-update-check.test.ts similarity index 100% rename from src/hooks/_auc-mocks-bgupdate/background-update-check.test.ts rename to src/hooks/_auc-mocks-bg/background-update-check.test.ts diff --git a/src/hooks/_auc-mocks-workspace/workspace-resolution.test.ts b/src/hooks/_auc-mocks-ws/workspace-resolution.test.ts similarity index 100% rename from src/hooks/_auc-mocks-workspace/workspace-resolution.test.ts rename to src/hooks/_auc-mocks-ws/workspace-resolution.test.ts