PR-448199:

Adding Testing with Jest and bin command for npx.
This commit is contained in:
2022-05-25 23:39:38 +00:00
parent b55b0f61a9
commit e9bc4f091f
5 changed files with 7342 additions and 1 deletions

View File

@ -2,6 +2,7 @@
"name": "ts-graphql-server",
"version": "0.0.1",
"description": "Node with Typescript and GraphQL Server",
"bin": "./bin/cli.js",
"main": "index.js",
"scripts": {
"start": "node build/index.js",
@ -10,7 +11,8 @@
"build": "webpack-cli --config webpack.config.ts",
"lint": "eslint ./ --ext .js --ext .ts",
"lint:fix": "eslint ./ --ext .js --ext .ts --fix",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "jest",
"test:watch": "jest --watch"
},
"repository": {
"type": "git",
@ -60,7 +62,10 @@
"compression-webpack-plugin": "^10.0.0",
"eslint": "^8.16.0",
"eslint-webpack-plugin": "^3.1.1",
"jest": "^28.1.0",
"nodemon": "^2.0.16",
"supertest": "^6.2.3",
"ts-jest": "^28.0.3",
"ts-loader": "^9.3.0",
"typescript": "^4.7.2",
"webpack": "^5.72.1",