vitests: Set global retry
This sets retry globally to `3`, so we don't have to add it to the tests individually. For the tests that are reliable this shouldn't have any effect, but it will trigger on tests that proved to be a bit flakey (like revisit tests).
This commit is contained in:
parent
16ae47e6e2
commit
28253c040e
4 changed files with 7 additions and 5 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import react from '@vitejs/plugin-react';
|
||||
import path from 'path';
|
||||
|
||||
import react from '@vitejs/plugin-react';
|
||||
|
||||
const config = {
|
||||
plugins: [react()],
|
||||
test: {
|
||||
|
|
@ -18,6 +19,7 @@ const config = {
|
|||
testTimeout: 10000,
|
||||
fileParallelism: false,
|
||||
exclude: ['./pkg/lib/**', '**/node_modules/**', '**/dist/**'],
|
||||
retry: 3,
|
||||
},
|
||||
reporters: ['default', 'junit'],
|
||||
outputFile: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue