Skip to content

Commit 0bff363

Browse files
committed
feat: add jest and related modules
1 parent 4ea43d2 commit 0bff363

File tree

2 files changed

+1964
-21
lines changed

2 files changed

+1964
-21
lines changed

package.json

+11
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,13 @@
3434
"watch": "yarn webpack serve --progress --mode production",
3535
"lint": "eslint src --ext .js,.ts,.tsx --ignore-pattern '!.*.js'",
3636
"format": "yarn lint --fix",
37+
"test": "jest",
38+
"test:watch": "jest --watchAll=true",
39+
"test:coverage": "rm -rf coverage && jest --coverage && open coverage/lcov-report/index.html",
3740
"postinstall": "husky install"
3841
},
3942
"dependencies": {
43+
"classcraft": "^1.0.1",
4044
"i18next": "^21.9.2",
4145
"i18next-browser-languagedetector": "^6.1.5",
4246
"i18next-resources-to-backend": "^1.0.0",
@@ -53,7 +57,12 @@
5357
"@commitlint/cli": "^17.4.4",
5458
"@commitlint/config-conventional": "^17.4.4",
5559
"@svgr/webpack": "^6.5.1",
60+
"@swc/core": "^1.4.2",
61+
"@swc/jest": "^0.2.36",
62+
"@testing-library/jest-dom": "^6.4.2",
63+
"@testing-library/react": "^14.2.1",
5664
"@trivago/prettier-plugin-sort-imports": "^4.0.0",
65+
"@types/jest": "^29.5.12",
5766
"@types/node": "^18.11.18",
5867
"@types/react": "^18.0.27",
5968
"@types/react-dom": "^18.0.10",
@@ -76,6 +85,8 @@
7685
"file-loader": "^6.2.0",
7786
"html-webpack-plugin": "^5.5.0",
7887
"husky": "^8.0.0",
88+
"jest": "^29.7.0",
89+
"jest-environment-jsdom": "^29.7.0",
7990
"mini-css-extract-plugin": "^2.7.2",
8091
"postcss": "^8.4.31",
8192
"postcss-loader": "^7.0.2",

0 commit comments

Comments
 (0)