Suppress only React Router Future warnings in tests

This commit is contained in:
Alex Gleason 2025-06-01 15:36:05 -05:00
parent ed2d3798ea
commit 065f3cfe02
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
2 changed files with 4 additions and 1 deletions

View File

@ -6,7 +6,7 @@
"scripts": { "scripts": {
"dev": "npm i && vite", "dev": "npm i && vite",
"build": "npm i && vite build && cp dist/index.html dist/404.html", "build": "npm i && vite build && cp dist/index.html dist/404.html",
"test": "npm i && tsc -p tsconfig.app.json --noEmit && eslint && vitest run --silent passed-only && vite build", "test": "npm i && tsc -p tsconfig.app.json --noEmit && eslint && vitest run && vite build",
"deploy": "npm run build && npx -y surge@latest dist" "deploy": "npm run build && npx -y surge@latest dist"
}, },
"dependencies": { "dependencies": {

View File

@ -14,6 +14,9 @@ export default defineConfig(() => ({
globals: true, globals: true,
environment: 'jsdom', environment: 'jsdom',
setupFiles: './src/test/setup.ts', setupFiles: './src/test/setup.ts',
onConsoleLog(log) {
return !log.includes("React Router Future Flag Warning");
},
}, },
resolve: { resolve: {
alias: { alias: {