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:
1 parent
4c8c6e8be7
commit
e0395ce5ed
1 file changed
+7
@@ -7,6 +7,10 @@ export default defineConfig({
|
||||
test: {
|
||||
name: 'unit',
|
||||
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',
|
||||
include: ['tests/**/*.test.ts'],
|
||||
maxWorkers: 2,
|
||||
sequence: {
|
||||
groupOrder: 1,
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user