Prepare vitest

This commit is contained in:
wvffle 2022-08-31 22:36:40 +00:00 committed by Georg Krause
commit 0541da444b
11 changed files with 529 additions and 1800 deletions

View file

@ -9,7 +9,7 @@
"build": "vite build --mode development",
"build:deployment": "vite build --base /front/",
"serve": "vite preview",
"test:unit": "jest",
"test:unit": "vitest run",
"lint": "eslint --ext .ts,.js,.vue src",
"lint:tsc": "vue-tsc --noEmit",
"fix-fomantic-css": "scripts/fix-fomantic-css.sh",
@ -18,7 +18,7 @@
"postinstall": "yarn run fix-fomantic-css"
},
"dependencies": {
"@sentry/tracing": "^7.7.0",
"@sentry/tracing": "7.7.0",
"@sentry/vue": "^7.7.0",
"@vue/runtime-core": "3.2.37",
"@vueuse/core": "8.9.4",
@ -38,28 +38,27 @@
"showdown": "2.1.0",
"text-clipper": "2.2.0",
"transliteration": "2.3.5",
"universal-cookie": "^4.0.4",
"universal-cookie": "4.0.4",
"vue": "3.2.37",
"vue-gettext": "2.1.12",
"vue-plyr": "7.0.0",
"vue-router": "4.1.2",
"vue-upload-component": "3.1.2",
"vue-virtual-scroller": "^2.0.0-alpha.1",
"vue-virtual-scroller": "2.0.0-alpha.1",
"vue3-gettext": "2.3.0",
"vue3-lazyload": "0.3.5",
"vuedraggable": "4.1.0",
"vuex": "4.0.2",
"vuex-persistedstate": "4.1.0",
"vuex-router-sync": "5.0.0",
"yarn": "^1.22.19"
"vuex-router-sync": "5.0.0"
},
"devDependencies": {
"@types/diff": "^5.0.2",
"@types/dompurify": "2.3.3",
"@types/howler": "2.2.7",
"@types/jest": "28.1.6",
"@types/jquery": "3.5.14",
"@types/lodash-es": "4.17.6",
"@types/moxios": "^0.4.15",
"@types/qs": "6.9.7",
"@types/semantic-ui": "2.2.7",
"@types/showdown": "2.0.0",
@ -71,7 +70,6 @@
"@vue/eslint-config-typescript": "11.0.0",
"@vue/test-utils": "2.0.2",
"@vue/tsconfig": "0.1.3",
"chai": "4.3.6",
"easygettext": "2.17.0",
"eslint": "8.20.0",
"eslint-config-standard": "17.0.0",
@ -81,16 +79,15 @@
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "6.0.0",
"eslint-plugin-vue": "9.3.0",
"jest-cli": "28.1.3",
"jsdom": "20.0.0",
"moxios": "0.4.0",
"sinon": "14.0.0",
"ts-jest": "28.0.7",
"typescript": "4.7.4",
"utility-types": "^3.10.0",
"vite": "3.0.3",
"vite-plugin-pwa": "0.12.3",
"vite-plugin-vue-inspector": "1.0.1",
"vue-jest": "3.0.7",
"vitest": "0.22.1",
"vue-tsc": "0.39.4",
"workbox-core": "6.5.3",
"workbox-precaching": "6.5.3",
@ -99,25 +96,5 @@
},
"resolutions": {
"vue-plyr/plyr": "3.6.12"
},
"jest": {
"moduleFileExtensions": [
"ts",
"js",
"json",
"vue"
],
"transform": {
".*\\.(vue)$": "vue-jest",
"^.+\\.js$": "babel-jest",
"^.+\\.ts$": "ts-jest"
},
"transformIgnorePatterns": [
"<rootDir>/node_modules/(?!lodash-es/.*)"
],
"moduleNameMapper": {
"^~/(.*)$": "<rootDir>/src/$1"
},
"testEnvironment": "jsdom"
}
}