forked from profectus/Profectus
Fixed jest with vite
This commit is contained in:
parent
7fe57798bb
commit
cde5e6d737
3 changed files with 6695 additions and 1391 deletions
|
@ -1,4 +1,7 @@
|
|||
module.exports = {
|
||||
moduleDirectories: ["src", "node_modules"],
|
||||
testEnvironment: "jsdom"
|
||||
preset: "vite-jest",
|
||||
testEnvironment: "jest-environment-jsdom",
|
||||
moduleNameMapper: {
|
||||
"^./../(.*)$": "$1"
|
||||
}
|
||||
};
|
||||
|
|
8071
package-lock.json
generated
8071
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -7,13 +7,12 @@
|
|||
"dev": "vite",
|
||||
"build": "vue-tsc --noEmit && vite build",
|
||||
"preview": "vite preview",
|
||||
"test": "jest"
|
||||
"test": "vite-jest --no-cache"
|
||||
},
|
||||
"dependencies": {
|
||||
"@pixi/particle-emitter": "^5.0.4",
|
||||
"@vitejs/plugin-vue": "^2.3.3",
|
||||
"@vitejs/plugin-vue-jsx": "^1.3.10",
|
||||
"core-js": "^3.6.5",
|
||||
"is-plain-object": "^5.0.0",
|
||||
"lodash.clonedeep": "^4.5.0",
|
||||
"lz-string": "^1.4.4",
|
||||
|
@ -39,10 +38,11 @@
|
|||
"@vue/eslint-config-typescript": "^10.0.0",
|
||||
"babel-jest": "^28.1.1",
|
||||
"eslint": "^8.6.0",
|
||||
"jest": "^28.1.1",
|
||||
"jest-environment-jsdom": "^28.1.1",
|
||||
"jest": "^27.5.1",
|
||||
"jest-environment-jsdom": "^27.5.1",
|
||||
"prettier": "^2.5.1",
|
||||
"typescript": "~4.5.5",
|
||||
"vite-jest": "^0.1.4",
|
||||
"vue-tsc": "^0.38.1"
|
||||
},
|
||||
"browserslist": [
|
||||
|
|
Loading…
Reference in a new issue