@entreprise-os/vitest-config 2.3.11 → 2.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data.ts +4 -2
- package/package.json +1 -1
package/data.ts
CHANGED
|
@@ -4,18 +4,20 @@ import { defineConfig } from "vitest/config";
|
|
|
4
4
|
* Base Vitest configuration for DATA packages
|
|
5
5
|
*
|
|
6
6
|
* Configures sequential test execution to avoid database race conditions.
|
|
7
|
-
*
|
|
7
|
+
* Tests run sequentially across all files since they share a database singleton.
|
|
8
8
|
*/
|
|
9
9
|
export default defineConfig({
|
|
10
10
|
test: {
|
|
11
11
|
// Run tests sequentially to avoid database race conditions
|
|
12
|
-
//
|
|
12
|
+
// All test files run one at a time to prevent parallel database access issues
|
|
13
13
|
pool: "forks",
|
|
14
14
|
poolOptions: {
|
|
15
15
|
forks: {
|
|
16
16
|
singleFork: true,
|
|
17
17
|
},
|
|
18
18
|
},
|
|
19
|
+
// Disable file parallelism - run one test file at a time
|
|
20
|
+
fileParallelism: false,
|
|
19
21
|
// Global hook timeout for setup/teardown operations
|
|
20
22
|
hookTimeout: 100000,
|
|
21
23
|
},
|