Skip to content

Commit 60fa111

Browse files
committed
🔎 jest, ts-jest, and jest config
1 parent eb5608b commit 60fa111

3 files changed

Lines changed: 2579 additions & 54 deletions

File tree

jest.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
preset: 'ts-jest',
3+
testEnvironment: 'node',
4+
}

package.json

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,28 @@
11
{
2-
"name": "javascript",
3-
"version": "1.0.0",
4-
"description": "A repository for All algorithms implemented in Javascript (for educational purposes only)",
5-
"scripts": {
6-
"typecheck": "yarn tsc --noEmit",
7-
"build": "yarn tsc",
8-
"build:watch": "yarn tsc --watch"
9-
},
10-
"author": "TheAlgorithms",
11-
"license": "GPL-3.0",
12-
"dependencies": {
13-
"jsdom": "^16.3.0",
14-
"node-fetch": "2.6.0"
15-
},
16-
"devDependencies": {
17-
"@types/node": "^14.0.27",
18-
"doctest": "^0.17.1",
19-
"standard": "^14.3.4",
20-
"ts-node": "^8.10.2",
21-
"tslib": "^2.0.1",
22-
"typescript": "^4.0.0-beta"
23-
}
2+
"name": "javascript",
3+
"version": "1.0.0",
4+
"description": "A repository for All algorithms implemented in Javascript (for educational purposes only)",
5+
"scripts": {
6+
"test": "jest",
7+
"typecheck": "yarn tsc --noEmit",
8+
"build": "yarn tsc",
9+
"build:watch": "yarn tsc --watch"
10+
},
11+
"author": "TheAlgorithms",
12+
"license": "GPL-3.0",
13+
"dependencies": {
14+
"jsdom": "^16.3.0",
15+
"node-fetch": "2.6.0"
16+
},
17+
"devDependencies": {
18+
"@types/jest": "^26.0.9",
19+
"@types/node": "^14.0.27",
20+
"doctest": "^0.17.1",
21+
"jest": "^26.2.2",
22+
"standard": "^14.3.4",
23+
"ts-jest": "^26.1.4",
24+
"ts-node": "^8.10.2",
25+
"tslib": "^2.0.1",
26+
"typescript": "^3.9.7"
27+
}
2428
}

0 commit comments

Comments
 (0)