Skip to content

Commit b063170

Browse files
committed
fix launch.json
1 parent 140e530 commit b063170

File tree

6 files changed

+31
-18
lines changed

6 files changed

+31
-18
lines changed

.vscode/launch.json

+17-13
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
21
{
3-
"version": "0.2.0",
4-
"configurations": [
5-
{
6-
"name": "Debug Jest Tests",
7-
"type": "node",
8-
"request": "launch",
9-
"runtimeArgs": ["--inspect-brk", "${workspaceRoot}/node_modules/.bin/jest", "--runInBand"],
10-
"console": "integratedTerminal",
11-
"internalConsoleOptions": "neverOpen"
12-
}
13-
]
14-
}
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"type": "node",
6+
"request": "launch",
7+
"name": "Debug jest tests",
8+
"program": "${workspaceFolder}/node_modules/.bin/jest",
9+
"args": ["--runInBand"],
10+
"console": "integratedTerminal",
11+
"internalConsoleOptions": "neverOpen",
12+
"disableOptimisticBPs": true,
13+
"windows": {
14+
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
15+
}
16+
}
17+
]
18+
}

jest.config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
module.exports = {
2+
testEnvironment: "node",
23
transform: {
34
"^.+\\.tsx?$": "ts-jest",
45
},
56
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
6-
testPathIgnorePatterns: ["/lib/", "/node_modules/"],
7+
testPathIgnorePatterns: ["/lib/", "/node_modules/", "/out/", "/build/", "/coverage/" ],
78
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
89
collectCoverage: true,
910
};

package-lock.json

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@
77
"compile": "tsc",
88
"run": "node ./build/index.js",
99
"execute": "tsc && node ./build/index.js",
10-
"test": "tsc && jest ./build/tests/*"
10+
"test": "tsc && jest ./build/tests/*",
11+
"d-test": "tsc && jest ./tests/*"
1112
},
1213
"author": "roguib",
1314
"license": "ISC",
1415
"dependencies": {
1516
"@types/jest": "^26.0.20",
1617
"ts-jest": "^26.5.1",
17-
"ts-node": "^9.1.1"
18+
"ts-node": "^9.1.1",
19+
"typescript": "^4.1.5"
1820
},
1921
"devDependencies": {
2022
"@types/node": "^14.14.21",

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
const fs = require("fs");
22
const path = require("path");
3-
const readline = require("readline");
3+
const readline = require("readline");

tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"module": "commonjs",
88
"target": "es2020",
99
"outDir": "./build",
10+
"sourceMap": true,
1011
"baseUrl": "./src",
1112
"paths": {
1213
"~/*": ["*"]
@@ -17,5 +18,5 @@
1718
"skipLibCheck": true,
1819
"forceConsistentCasingInFileNames": true
1920
},
20-
"exclude": ["node_modules", "build", "tests/fixtures"]
21+
"exclude": ["node_modules", "build", "tests/fixtures", "coverage", "out"]
2122
}

0 commit comments

Comments
 (0)