Added jest

This commit is contained in:
mrfry 2021-05-04 10:27:12 +02:00
parent 4e6b3deb9b
commit 8801bb96cd
3 changed files with 12563 additions and 37 deletions

View file

@ -3,6 +3,7 @@ module.exports = {
browser: true,
es6: true,
node: true,
jest: true,
},
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],

12588
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -20,11 +20,18 @@
"start": "node ./dist/server.js",
"dev": "npm run build && NS_DEVEL=1 NS_NOUSER=1 NS_LOGLEVEL=1 node ./dist/server.js",
"build": "tsc && bash -c './scripts/postBuild.sh'",
"export": "tsc && bash -c './scripts/postBuild.sh'"
"export": "tsc && bash -c './scripts/postBuild.sh'",
"test": "jest"
},
"devDependencies": {
"@types/jest": "^26.0.23",
"@typescript-eslint/eslint-plugin": "^4.8.1",
"@typescript-eslint/parser": "^4.22.0",
"eslint": "^7.14.0"
"eslint": "^7.14.0",
"jest": "^26.6.3",
"ts-jest": "^26.5.5"
},
"jest": {
"preset": "ts-jest"
}
}