From ccb59d9d328f134fd9254b8c117ce427aa72ecb4 Mon Sep 17 00:00:00 2001 From: Abhinay Kalkhanday Date: Sat, 10 Oct 2026 11:34:25 +0530 Subject: [PATCH] fix(testing): update turbo task graph for test:e2e cache Add cache: false to test:e2e in turbo.json to prevent stale cached test passes. Updates testing-strategy.md. --- .agents/docs/architecture/testing-strategy.md | 3 ++- turbo.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.agents/docs/architecture/testing-strategy.md b/.agents/docs/architecture/testing-strategy.md index 8be9ddc7e..63a8aa48f 100644 --- a/.agents/docs/architecture/testing-strategy.md +++ b/.agents/docs/architecture/testing-strategy.md @@ -105,7 +105,8 @@ Exceptions worth knowing: ## Turbo task graph -`lint`, `dev`, `dev:test` and `test:e2e` all depend on `["^build", "^db:generate", "db:push"]` +`lint`, `dev`, `dev:test` and `test:e2e` all depend on `["^build", "^db:generate", "db:push"]`. +`test:e2e` additionally specifies `"cache": false` because it requires a live server and database. (`build` itself depends on `^build` and `db:generate`). A cold `pnpm lint` therefore builds every dependency, generates both Prisma clients, and pushes the gateway SQLite schema — it is not fast. diff --git a/turbo.json b/turbo.json index cfebf2df1..e3c706033 100644 --- a/turbo.json +++ b/turbo.json @@ -39,6 +39,7 @@ }, "//#lint:root": {}, "test:e2e": { + "cache": false, "dependsOn": ["^build", "^db:generate", "db:push"] }, "start": {