From 92d24b92f7672106d81fb278e6d78f1f6b274c35 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Fri, 25 Sep 2026 12:00:03 -0700 Subject: [PATCH 1/2] fix(trigger): exclude integration test files from task discovery --- apps/sim/trigger.config.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/sim/trigger.config.ts b/apps/sim/trigger.config.ts index 7966fdbf94a..f348021d7b2 100644 --- a/apps/sim/trigger.config.ts +++ b/apps/sim/trigger.config.ts @@ -96,6 +96,15 @@ export default defineConfig({ }, }, dirs: ['./background'], + /** + * Every file under `dirs` is imported as a task file at deploy time, so any + * test co-located there must be excluded or its top-level `vi.mock()` throws + * outside Vitest and fails the whole deploy. Setting this replaces the CLI's + * defaults (`*.test.*` and `*.spec.*`), which are restated here alongside + * the `*.integration.*` suffix used for suites that run against real + * Postgres/Redis. + */ + ignorePatterns: ['**/*.{test,spec,integration}.{ts,mts,cts,js,mjs,cjs}'], /** * Runs before any task run, in the run process. Marks the process so that * dispatch decisions further down the call graph stop inferring from From 98d39d589c0ffafc954256b0a80e663978dc95f6 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Fri, 25 Sep 2026 12:10:20 -0700 Subject: [PATCH 2/2] fix(trigger): cover tsx and jsx test files in task discovery ignores --- apps/sim/trigger.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/sim/trigger.config.ts b/apps/sim/trigger.config.ts index f348021d7b2..5c2ae2d6cff 100644 --- a/apps/sim/trigger.config.ts +++ b/apps/sim/trigger.config.ts @@ -102,9 +102,9 @@ export default defineConfig({ * outside Vitest and fails the whole deploy. Setting this replaces the CLI's * defaults (`*.test.*` and `*.spec.*`), which are restated here alongside * the `*.integration.*` suffix used for suites that run against real - * Postgres/Redis. + * Postgres/Redis, across every extension task discovery matches. */ - ignorePatterns: ['**/*.{test,spec,integration}.{ts,mts,cts,js,mjs,cjs}'], + ignorePatterns: ['**/*.{test,spec,integration}.{ts,tsx,mts,cts,js,jsx,mjs,cjs}'], /** * Runs before any task run, in the run process. Marks the process so that * dispatch decisions further down the call graph stop inferring from