Skip to content

Commit 9e30c22

Browse files
author
Lance Fisher
committed
Trying to fix debugging
Debugging Jest is still broken. See facebook/create-react-app#2041
1 parent fd42224 commit 9e30c22

File tree

3 files changed

+985
-807
lines changed

3 files changed

+985
-807
lines changed

.vscode/launch.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@
55
"name": "Debug Tests",
66
"type": "node",
77
"request": "launch",
8-
"program": "${workspaceRoot}/node_modules/jest/bin/jest.js",
8+
// "program": "${workspaceRoot}/node_modules/jest/bin/jest.js",
9+
"protocol": "inspector",
10+
"program": "${workspaceRoot}/node_modules/.bin/jest",
911
"stopOnEntry": false,
1012
"args": [
11-
"--config", "jest.json"
13+
"--runInBand"
1214
],
1315
"cwd": "${workspaceRoot}",
1416
"runtimeExecutable": "babel-node",

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,18 @@
1515
"build": "webpack --config webpack.config.js"
1616
},
1717
"devDependencies": {
18-
"babel-core": "^6.23.1",
19-
"babel-loader": "^6.3.2",
20-
"babel-preset-env": "^1.2.0",
21-
"babel-preset-es2015": "^6.22.0",
2218
"eslint-plugin-import": "^2.2.0",
2319
"eslint-plugin-jsx-a11y": "^4.0.0",
2420
"eslint-plugin-react": "^6.9.0",
25-
"jest": "^19.0.2",
21+
"jest": "^20.0.4",
2622
"webpack": "^2.2.1"
2723
},
2824
"dependencies": {
25+
"babel-cli": "^6.24.1",
26+
"babel-core": "^6.24.1",
27+
"babel-loader": "^7.0.0",
28+
"babel-preset-env": "^1.5.1",
29+
"babel-preset-es2015": "^6.24.1",
2930
"eslint": "^3.15.0",
3031
"eslint-config-airbnb": "^14.1.0"
3132
}

0 commit comments

Comments
 (0)