test: make Vitest project order explicit

Add explicit group ordering for Vitest projects so unit tests run before e2e tests, while keeping the e2e ordering fix from PR #38.\n\nCo-authored-by: RbBtSn0w <hamiltonsnow@gmail.com>
This commit is contained in:
jackwener committed 2026-03-17 17:46:03 +08:00
1 parent 4c8c6e8be7
commit e0395ce5ed
1 file changed
+7
+7
View File
@@ -7,6 +7,10 @@ export default defineConfig({
test: { test: {
name: 'unit', name: 'unit',
include: ['src/**/*.test.ts'], include: ['src/**/*.test.ts'],
// Run unit tests before e2e tests to avoid project-level contention in CI.
sequence: {
groupOrder: 0,
},
}, },
}, },
{ {
@@ -14,6 +18,9 @@ export default defineConfig({
name: 'e2e', name: 'e2e',
include: ['tests/**/*.test.ts'], include: ['tests/**/*.test.ts'],
maxWorkers: 2, maxWorkers: 2,
sequence: {
groupOrder: 1,
},
}, },
}, },
], ],