use vitest instead of jest

This commit is contained in:
Martti Malmi
2023-11-21 10:10:20 +02:00
parent f69e05d8fc
commit 60af57059b
5 changed files with 357 additions and 31 deletions

View File

@ -50,7 +50,8 @@
"start": "vite",
"build": "yarn eslint --fix && vite build",
"serve": "vite preview",
"test": "jest --runInBand",
"test": "vitest run",
"test:watch": "vitest watch",
"intl-extract": "formatjs extract 'src/**/*.ts*' --ignore='**/*.d.ts' --out-file src/lang.json --flatten true",
"intl-compile": "formatjs compile src/lang.json --out-file src/translations/en.json",
"eslint": "eslint ."
@ -76,10 +77,8 @@
},
"devDependencies": {
"@formatjs/cli": "^6.1.3",
"@jest/globals": "^29.6.1",
"@types/config": "^3.3.3",
"@types/debug": "^4.1.8",
"@types/jest": "^29.5.1",
"@types/node": "^20.4.1",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.10",
@ -97,8 +96,6 @@
"config": "^3.3.9",
"eslint": "^8.48.0",
"eslint-plugin-formatjs": "^4.11.3",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"postcss": "^8.4.31",
"postcss-preset-env": "^9.2.0",
"prettier": "2.8.3",
@ -106,10 +103,10 @@
"rollup-plugin-visualizer": "^5.9.2",
"tailwindcss": "^3.3.3",
"tinybench": "^2.5.1",
"ts-jest": "^29.1.1",
"typescript": "^5.2.2",
"vite": "^5.0.0",
"vite-plugin-pwa": "^0.17.0",
"vite-plugin-version-mark": "^0.0.10"
"vite-plugin-version-mark": "^0.0.10",
"vitest": "^0.34.6"
}
}