Fix vitest config

This commit is contained in:
Alejandro Celaya 2023-08-10 09:18:22 +02:00
parent ca6a7ff079
commit dfe2cdadbc
3 changed files with 21 additions and 11 deletions

22
package-lock.json generated
View file

@ -59,11 +59,11 @@
"@types/leaflet": "^1.9.3",
"@types/qs": "^6.9.7",
"@types/ramda": "^0.27.66",
"@types/react": "^18.0.26",
"@types/react": "^18.2.19",
"@types/react-color": "^3.0.6",
"@types/react-copy-to-clipboard": "^5.0.4",
"@types/react-datepicker": "^4.15.0",
"@types/react-dom": "^18.0.10",
"@types/react-dom": "^18.2.7",
"@types/react-tag-autocomplete": "^6.3.0",
"@types/uuid": "^9.0.2",
"@vitejs/plugin-react": "^4.0.4",
@ -3527,8 +3527,9 @@
}
},
"node_modules/@types/react": {
"version": "18.0.26",
"license": "MIT",
"version": "18.2.19",
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.19.tgz",
"integrity": "sha512-e2S8wmY1ePfM517PqCG80CcE48Xs5k0pwJzuDZsfE8IZRRBfOMCF+XqnFxu6mWtyivum1MQm4aco+WIt6Coimw==",
"dependencies": {
"@types/prop-types": "*",
"@types/scheduler": "*",
@ -3565,9 +3566,10 @@
}
},
"node_modules/@types/react-dom": {
"version": "18.0.10",
"version": "18.2.7",
"resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.2.7.tgz",
"integrity": "sha512-GRaAEriuT4zp9N4p1i8BDBYmEyfo+xQ3yHjJU4eiK5NDa1RmUZG+unZABUTK4/Ox/M+GaHwb6Ow8rUITrtjszA==",
"devOptional": true,
"license": "MIT",
"dependencies": {
"@types/react": "*"
}
@ -13623,7 +13625,9 @@
}
},
"@types/react": {
"version": "18.0.26",
"version": "18.2.19",
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.19.tgz",
"integrity": "sha512-e2S8wmY1ePfM517PqCG80CcE48Xs5k0pwJzuDZsfE8IZRRBfOMCF+XqnFxu6mWtyivum1MQm4aco+WIt6Coimw==",
"requires": {
"@types/prop-types": "*",
"@types/scheduler": "*",
@ -13658,7 +13662,9 @@
}
},
"@types/react-dom": {
"version": "18.0.10",
"version": "18.2.7",
"resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.2.7.tgz",
"integrity": "sha512-GRaAEriuT4zp9N4p1i8BDBYmEyfo+xQ3yHjJU4eiK5NDa1RmUZG+unZABUTK4/Ox/M+GaHwb6Ow8rUITrtjszA==",
"devOptional": true,
"requires": {
"@types/react": "*"

View file

@ -75,11 +75,11 @@
"@types/leaflet": "^1.9.3",
"@types/qs": "^6.9.7",
"@types/ramda": "^0.27.66",
"@types/react": "^18.0.26",
"@types/react": "^18.2.19",
"@types/react-color": "^3.0.6",
"@types/react-copy-to-clipboard": "^5.0.4",
"@types/react-datepicker": "^4.15.0",
"@types/react-dom": "^18.0.10",
"@types/react-dom": "^18.2.7",
"@types/react-tag-autocomplete": "^6.3.0",
"@types/uuid": "^9.0.2",
"@vitejs/plugin-react": "^4.0.4",

View file

@ -58,7 +58,11 @@ export default defineConfig({
lines: 95,
},
deps: {
inline: ['vitest-canvas-mock'],
optimizer: {
web: {
include: ['vitest-canvas-mock'],
},
},
},
},
});