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, browser: true,
es6: true, es6: true,
node: true, node: true,
jest: true,
}, },
parser: '@typescript-eslint/parser', parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'], 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", "start": "node ./dist/server.js",
"dev": "npm run build && NS_DEVEL=1 NS_NOUSER=1 NS_LOGLEVEL=1 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'", "build": "tsc && bash -c './scripts/postBuild.sh'",
"export": "tsc && bash -c './scripts/postBuild.sh'" "export": "tsc && bash -c './scripts/postBuild.sh'",
"test": "jest"
}, },
"devDependencies": { "devDependencies": {
"@types/jest": "^26.0.23",
"@typescript-eslint/eslint-plugin": "^4.8.1", "@typescript-eslint/eslint-plugin": "^4.8.1",
"@typescript-eslint/parser": "^4.22.0", "@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"
} }
} }