mirror of
https://gitlab.com/RemixDev/deemix-gui.git
synced 2024-12-29 11:06:13 +00:00
feat: added test deps
This commit is contained in:
parent
1bf94ea65d
commit
eb91ff06d6
|
@ -3,5 +3,8 @@ NODE_BIN ?= .\node_modules\.bin
|
|||
lint:
|
||||
@$(NODE_BIN)\eslint ./src/** --fix
|
||||
|
||||
build: lint
|
||||
test:
|
||||
@$(NODE_BIN)\jest
|
||||
|
||||
build: lint test
|
||||
@$(NODE_BIN)\tsc
|
||||
|
|
6
server/jest.config.js
Normal file
6
server/jest.config.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
module.exports = {
|
||||
clearMocks: true,
|
||||
roots: ['<rootDir>/src'],
|
||||
testEnvironment: 'node',
|
||||
preset: 'ts-jest'
|
||||
}
|
|
@ -8,7 +8,9 @@
|
|||
"start-build": "node dist/app.js",
|
||||
"lint": "eslint . --fix",
|
||||
"prebuild": "yarn lint",
|
||||
"build": "tsc"
|
||||
"build": "tsc",
|
||||
"test": "jest",
|
||||
"test-watch": "jest --watch"
|
||||
},
|
||||
"dependencies": {
|
||||
"cookie-parser": "1.4.5",
|
||||
|
@ -21,15 +23,20 @@
|
|||
"@types/cookie-parser": "1.4.2",
|
||||
"@types/debug": "4.1.5",
|
||||
"@types/express": "4.17.11",
|
||||
"@types/jest": "26.0.22",
|
||||
"@types/morgan": "1.9.2",
|
||||
"@types/node": "14.14.37",
|
||||
"@types/supertest": "2.0.11",
|
||||
"@typescript-eslint/eslint-plugin": "4.21.0",
|
||||
"@typescript-eslint/parser": "4.21.0",
|
||||
"eslint": "7.23.0",
|
||||
"eslint-config-prettier": "^8.1.0",
|
||||
"eslint-plugin-prettier": "3.3.1",
|
||||
"jest": "26.6.3",
|
||||
"nodemon": "2.0.7",
|
||||
"prettier": "2.2.1",
|
||||
"supertest": "6.1.3",
|
||||
"ts-jest": "26.5.4",
|
||||
"ts-node": "9.1.1",
|
||||
"ts-node-dev": "1.1.6",
|
||||
"typescript": "4.2.4"
|
||||
|
|
2874
server/yarn.lock
2874
server/yarn.lock
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue