mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-28 09:03:53 +00:00
chore: Jest Testing structure (#2707)
* deps: add jest deps * chore: mock * feat: use mocinggoose * feat: jest * chore: remove babel.config.js
This commit is contained in:
@@ -6,7 +6,8 @@
|
||||
"dev": "next dev",
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"lint": "next lint"
|
||||
"lint": "next lint",
|
||||
"test": "jest"
|
||||
},
|
||||
"dependencies": {
|
||||
"@bany/curl-to-json": "^1.2.8",
|
||||
@@ -25,6 +26,7 @@
|
||||
"@fortaine/fetch-event-source": "^3.0.6",
|
||||
"@node-rs/jieba": "1.10.0",
|
||||
"@tanstack/react-query": "^4.24.10",
|
||||
"@types/jest": "^29.5.2",
|
||||
"@types/nprogress": "^0.2.0",
|
||||
"ahooks": "^3.7.11",
|
||||
"axios": "^1.5.1",
|
||||
@@ -37,6 +39,7 @@
|
||||
"hyperdown": "^2.4.29",
|
||||
"i18next": "23.11.5",
|
||||
"immer": "^9.0.19",
|
||||
"jest": "^29.5.0",
|
||||
"js-yaml": "^4.1.0",
|
||||
"json5": "^2.2.3",
|
||||
"jsonwebtoken": "^9.0.2",
|
||||
@@ -62,10 +65,12 @@
|
||||
"remark-math": "^6.0.0",
|
||||
"request-ip": "^3.3.0",
|
||||
"sass": "^1.58.3",
|
||||
"ts-jest": "^29.1.0",
|
||||
"use-context-selector": "^1.4.4",
|
||||
"zustand": "^4.3.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@shelf/jest-mongodb": "^4.3.2",
|
||||
"@svgr/webpack": "^6.5.1",
|
||||
"@types/formidable": "^2.0.5",
|
||||
"@types/js-yaml": "^4.0.9",
|
||||
@@ -78,6 +83,8 @@
|
||||
"@types/request-ip": "^0.0.37",
|
||||
"eslint": "8.56.0",
|
||||
"eslint-config-next": "14.2.3",
|
||||
"mockingoose": "^2.16.2",
|
||||
"mongodb-memory-server": "^10.0.0",
|
||||
"nextjs-node-loader": "^1.1.5",
|
||||
"typescript": "^5.1.3"
|
||||
}
|
||||
|
Reference in New Issue
Block a user