Skip to content

Commit

Permalink
Installed jest & ts-jest
Browse files Browse the repository at this point in the history
  • Loading branch information
Zayan-Alaraishy committed Oct 13, 2022
1 parent 79b5a58 commit f907386
Show file tree
Hide file tree
Showing 7 changed files with 8,181 additions and 3,028 deletions.
5 changes: 5 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node'
}
11,187 changes: 8,160 additions & 3,027 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"build": "tsc",
"start": "npm run build && cross-env NODE_ENV=production node dist/",
"dev": "cross-env NODE_ENV=development nodemon src/",
"test": "cross-env NODE_ENV=test jest",
"tsc-lint": "tsc --noEmit && cd client && npm run tsc-lint",
"lint": "eslint --ignore-path .gitignore --ext .ts src/ && cd client && npm run lint",
"prepare": "husky install"
Expand All @@ -19,15 +20,18 @@
"@types/compression": "^1.7.2",
"@types/cors": "^2.8.12",
"@types/express": "^4.17.14",
"@types/jest": "^29.1.2",
"@typescript-eslint/eslint-plugin": "^5.39.0",
"@typescript-eslint/parser": "^5.39.0",
"eslint": "^8.24.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.8",
"husky": "^8.0.1",
"jest": "^29.1.2",
"nodemon": "^2.0.20",
"prettier": "^2.7.1",
"ts-jest": "^29.0.3",
"ts-node-dev": "^2.0.0",
"typescript": "^4.8.4"
},
Expand All @@ -38,5 +42,5 @@
"dotenv": "^16.0.3",
"express": "^4.18.1",
"mongoose": "^6.6.5"
}
}
}
5 changes: 5 additions & 0 deletions src/controllers/__tests__/UserController.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
test('dummy test', () => {
expect(1).toBe(1)
})

export {}
5 changes: 5 additions & 0 deletions src/helpers/__tests__/AuthHelper.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
test('dummy test', () => {
expect(1).toBe(1)
})

export {}
File renamed without changes.
1 change: 1 addition & 0 deletions src/services/UserServices.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {}

0 comments on commit f907386

Please sign in to comment.