Updated dependencies, added jest, ts-ject, supertest and supporting types.

Added minimum jest configuration to package.json.
Added allowSyntheticDefaultImports to tsconfig.
Added sample e2e test for app controller.
This commit is contained in:
Brandon Taylor
2017-12-17 12:33:45 -05:00
parent cd6e046a3a
commit 28f8258864
4 changed files with 3991 additions and 13 deletions
+30 -12
View File
@@ -7,22 +7,40 @@
"start": "node index.js",
"start:watch": "nodemon",
"prestart:prod": "tsc",
"start:prod": "node dist/server.js"
"start:prod": "node dist/server.js",
"test": "jest"
},
"dependencies": {
"@nestjs/common": "^4.4.0",
"@nestjs/core": "^4.4.0",
"@nestjs/microservices": "^4.4.0",
"@nestjs/testing": "^4.4.0",
"@nestjs/websockets": "^4.4.0",
"redis": "^2.7.1",
"@nestjs/common": "^4.5.1",
"@nestjs/core": "^4.5.1",
"@nestjs/microservices": "^4.5.1",
"@nestjs/testing": "^4.5.1",
"@nestjs/websockets": "^4.5.1",
"redis": "^2.8.0",
"reflect-metadata": "^0.1.10",
"rxjs": "^5.4.0",
"typescript": "^2.5.2"
"rxjs": "^5.5.5",
"typescript": "^2.6.2"
},
"devDependencies": {
"@types/node": "^8.0.28",
"nodemon": "^1.12.1",
"ts-node": "^3.3.0"
"@types/express": "^4.0.39",
"@types/jest": "^21.1.8",
"@types/node": "^8.5.1",
"@types/supertest": "^2.0.4",
"jest": "^21.2.1",
"nodemon": "^1.13.3",
"supertest": "^3.0.0",
"ts-jest": "^21.2.4",
"ts-node": "^4.0.2"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"testRegex": ".spec.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
}
}
}