Skip to content

Commit

Permalink
Added jest
Browse files Browse the repository at this point in the history
  • Loading branch information
chimon2000 committed Feb 14, 2018
1 parent dd86cf5 commit 0ef05d3
Show file tree
Hide file tree
Showing 3 changed files with 457 additions and 49 deletions.
14 changes: 14 additions & 0 deletions jest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"json"
],
"transform": {
"^.+\\.tsx?$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
},
"testRegex": "/server/.*\\.(test|spec).(ts|tsx|js)$",
"collectCoverageFrom" : ["src/**/*.{js,jsx,tsx,ts}", "!**/node_modules/**", "!**/vendor/**"],
"coverageReporters": ["json", "lcov"]
}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@
],
"main": "server/apps/serve.js",
"devDependencies": {
"@nestjs/testing": "^4.5.5",
"@types/exceljs": "^0.5.2",
"@types/express": "^4.0.39",
"@types/jest": "^22.1.2",
"@types/node": "^8.0.54",
"@types/pino": "^4.7.1",
"@types/sequelize": "^4.0.79",
Expand All @@ -47,11 +49,12 @@
"faker": "^4.1.0",
"jasmine": "^2.6.0",
"lerna": "^2.8.0",
"node": "^8.9.4",
"nodemon": "^1.14.12",
"quoted-printable": "^1.0.1",
"rimraf": "^2.6.2",
"sqlite3": "^3.1.13",
"supertest": "^3.0.0",
"ts-jest": "^22.0.4",
"ts-node": "^4.1.0",
"tslint": "^5.8.0",
"typescript": "^2.6.2",
Expand Down
Loading

0 comments on commit 0ef05d3

Please sign in to comment.