Added basic jest packages and scripts

ref #4
This commit is contained in:
Nicolai Ort 2021-03-03 16:15:53 +01:00
parent 10b13127aa
commit fa9d0e5790
1 changed files with 8 additions and 2 deletions

View File

@ -9,7 +9,10 @@
"licenses:export": "license-exporter --markdown",
"release": "release-it --only-version",
"translations:sort": "node ./scripts/sort_translations.js",
"test:generate_env": "ts-node ./scripts/create_testenv.ts"
"test": "jest",
"test:generate_env": "ts-node ./scripts/create_testenv.ts",
"test:ci": "npm run test:generate_env && npm run test:ci:run",
"test:ci:run": "start-server-and-test dev http://localhost:4010/api/docs/openapi.json test"
},
"repository": {
"type": "git",
@ -58,13 +61,16 @@
"devDependencies": {
"@odit/license-exporter": "^0.0.10",
"@types/express": "^4.17.11",
"@types/jest": "^26.0.20",
"@types/node": "^14.14.22",
"@types/nodemailer": "^6.4.0",
"cp-cli": "^2.0.0",
"jest": "^26.6.3",
"nodemon": "^2.0.7",
"release-it": "^14.2.2",
"rimraf": "^3.0.2",
"start-server-and-test": "^1.12.0",
"ts-jest": "^26.5.2",
"ts-node": "^9.1.1",
"typescript": "^4.1.3"
},
@ -81,4 +87,4 @@
"publish": false
}
}
}
}