Skip to content

Commit

Permalink
feat: migrate jest -> vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
JoltCode committed Oct 8, 2023
1 parent 0b9d5d1 commit b02ca00
Show file tree
Hide file tree
Showing 10 changed files with 2,964 additions and 3,400 deletions.
20 changes: 5 additions & 15 deletions src/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build:start": "cd dist && PORT=8080 npx serve",
"start": "env-cmd -f .env.dev webpack serve --open --mode development",
"start:live": "vite dev",
"test": "jest tests/"
"test": "vitest tests/"
},
"license": "MIT",
"author": {
Expand All @@ -20,6 +20,8 @@
"@babel/preset-env": "^7.15.8",
"@babel/preset-react": "^7.14.5",
"@babel/preset-typescript": "^7.10.4",
"@testing-library/jest-dom": "^6.1.3",
"@testing-library/react": "^12.1.5",
"@types/react": "^17.0.2",
"@types/react-dom": "^17.0.2",
"@vitejs/plugin-react": "^4.1.0",
Expand All @@ -33,6 +35,7 @@
"eslint-plugin-react": "^7.33.0",
"html-webpack-plugin": "^5.3.2",
"jest-environment-jsdom": "^29.6.1",
"jsdom": "^22.1.0",
"ol": "^8.0.0",
"ol-layerswitcher": "^4.1.1",
"postcss": "^8.4.28",
Expand All @@ -46,6 +49,7 @@
"thread-loader": "^3.0.4",
"typescript": "^4.5.2",
"vite": "^4.4.11",
"vitest": "^0.34.6",
"webpack": "^5.57.1",
"webpack-bundle-analyzer": "^4.8.0",
"webpack-cli": "^4.9.0",
Expand All @@ -65,8 +69,6 @@
"@radix-ui/react-switch": "^1.0.3",
"@reduxjs/toolkit": "^1.9.1",
"@sentry/react": "^7.59.3",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^12.1.5",
"@types/jest": "^29.5.3",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
Expand All @@ -92,17 +94,5 @@
"redux-persist": "^6.0.0",
"tailwind-merge": "^1.14.0",
"tailwindcss-animate": "^1.0.7"
},
"jest": {
"testEnvironment": "jsdom",
"moduleNameMapper": {
"^components/(.*)$": "<rootDir>/src/components/$1",
"^.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/tests/mocks/fileMock.ts",
"^.+\\.(css|less|scss|sass)$": "<rootDir>/tests/mocks/styleMock.ts",
"(assets|models|services)": "<rootDir>/tests/mocks/fileMock.ts"
},
"setupFilesAfterEnv": [
"./setupTests.js"
]
}
}
Loading

0 comments on commit b02ca00

Please sign in to comment.