Skip to content

Commit 5672388

Browse files
committed
Enhance turbo.json configuration for testing by adding input patterns and updating test:watch settings; increase timeout for adapter tests.
1 parent d4ba7c0 commit 5672388

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

packages/better-auth/tests/adapter.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ describe("My Adapter Tests", async () => {
5151
}
5252
}
5353
}
54-
});
54+
}, 60_000);
5555

5656
if (!process.env.FM_SERVER) {
5757
throw new Error("FM_SERVER is not set");

turbo.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,20 @@
1818
"dependsOn": ["^build"]
1919
},
2020
"test": {
21-
"outputs": ["coverage/**"],
22-
"dependsOn": []
21+
"inputs": [
22+
"$TURBO_DEFAULT$",
23+
"vitest.config.*",
24+
"**/*.test.ts",
25+
"**/*.test.tsx",
26+
"**/*.spec.ts",
27+
"**/*.spec.tsx"
28+
],
29+
"outputs": [],
30+
"dependsOn": ["^build"]
31+
},
32+
"test:watch": {
33+
"cache": false,
34+
"persistent": true
2335
},
2436
"typecheck": {
2537
"dependsOn": ["^build"],

0 commit comments

Comments
 (0)