Suppress only React Router Future warnings in tests

This commit is contained in:
Alex Gleason committed 2025-06-01 15:36:05 -05:00
1 parent ed2d3798ea
commit 065f3cfe02
2 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@
"scripts": {
"dev": "npm i && vite",
"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"
},
"dependencies": {
+3
View File
@@ -14,6 +14,9 @@ export default defineConfig(() => ({
globals: true,
environment: 'jsdom',
setupFiles: './src/test/setup.ts',
onConsoleLog(log) {
return !log.includes("React Router Future Flag Warning");
},
},
resolve: {
alias: {