Last active
May 23, 2021 07:20
-
-
Save riddla/8830e0485dd0a48533c8fb05da2df09d to your computer and use it in GitHub Desktop.
Debug ES6 React using Jest with Visual Studio Code (VSCode)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"presets": [ | |
"react", | |
"es2015" | |
], | |
"sourceMaps": "inline", | |
"retainLines": true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [{ | |
"type": "node", | |
"request": "launch", | |
"name": "Launch Jest", | |
"program": "${workspaceRoot}/node_modules/jest/bin/jest.js", | |
"cwd": "${workspaceRoot}", | |
"args": ["--runInBand"], | |
"runtimeArgs": [ | |
"--nolazy" | |
], | |
"env": { | |
"NODE_ENV": "development" | |
}, | |
"sourceMaps": true | |
}] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"devDependencies": { | |
"babel-jest": "^18.0.0", | |
"babel-preset-es2015": "^6.22.0", | |
"babel-preset-react": "^6.22.0", | |
"babel-register": "^6.22.0", | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Vikaskumargd thanks it works great on the latest VS.