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:
regexowl 2025-02-05 09:28:59 +01:00 committed by Klara Simickova
parent 16ae47e6e2
commit 28253c040e
4 changed files with 7 additions and 5 deletions

View file

@ -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: {