@entreprise-os/vitest-config 2.3.11 → 2.3.12

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.
Files changed (2) hide show
  1. package/data.ts +4 -2
  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
- * Each test file runs in its own process with tests running sequentially.
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
- // Each test file runs in its own process, but tests within a file run sequentially
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
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entreprise-os/vitest-config",
3
- "version": "2.3.11",
3
+ "version": "2.3.12",
4
4
  "description": "Shared Vitest configuration for Enterprise OS packages",
5
5
  "type": "module",
6
6
  "publishConfig": {