feat: add frontend unit test framework (#6426)

This commit is contained in:
Joel
2024-07-18 17:35:10 +08:00
committed by GitHub
parent afe95fa780
commit 4ae4895ebe
8 changed files with 2439 additions and 21 deletions

View File

@@ -15,7 +15,9 @@
"prepare": "cd ../ && node -e \"if (process.env.NODE_ENV !== 'production'){process.exit(1)} \" || husky install ./web/.husky",
"gen-icons": "node ./app/components/base/icons/script.js",
"uglify-embed": "node ./bin/uglify-embed",
"check-i18n": "node ./i18n/script.js"
"check-i18n": "node ./i18n/script.js",
"test": "jest",
"test:watch": "jest --watch"
},
"dependencies": {
"@babel/runtime": "^7.22.3",
@@ -102,8 +104,12 @@
"@antfu/eslint-config": "^0.36.0",
"@faker-js/faker": "^7.6.0",
"@rgrove/parse-xml": "^4.1.0",
"@testing-library/dom": "^10.3.2",
"@testing-library/jest-dom": "^6.4.6",
"@testing-library/react": "^16.0.0",
"@types/crypto-js": "^4.1.1",
"@types/dagre": "^0.7.52",
"@types/jest": "^29.5.12",
"@types/js-cookie": "^3.0.3",
"@types/lodash-es": "^4.17.7",
"@types/negotiator": "^0.6.1",
@@ -124,10 +130,13 @@
"eslint": "^8.36.0",
"eslint-config-next": "^14.0.4",
"husky": "^8.0.3",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^13.2.2",
"postcss": "^8.4.31",
"sass": "^1.61.0",
"tailwindcss": "^3.4.4",
"ts-node": "^10.9.2",
"typescript": "4.9.5",
"uglify-js": "^3.17.4"
},