mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2025-08-27 13:09:22 +00:00
Suppress only React Router Future warnings in tests
This commit is contained in:
parent
ed2d3798ea
commit
065f3cfe02
@ -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": {
|
||||||
|
@ -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: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user