diff --git a/apps/sim/trigger.config.ts b/apps/sim/trigger.config.ts index 7966fdbf94a..5c2ae2d6cff 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, across every extension task discovery matches. + */ + 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