Skip to content

Commit

Permalink
fix(js-12): Make breakpoints work
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus von Rüden committed Aug 1, 2017
1 parent 36b883c commit 13fb9ae
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,9 @@ Then you can run yarn to build or test the project:
* `yarn test` - run the tests
* `yarn watch-test` - continuously run the tests
* `yarn cli -- <arguments>` - run the CLI test tool (try `--help` for options)

# Debugging Tests

On MAC OS X with WebStorm v2017.2 debugging tests may not work.
See https://github.com/facebook/jest/issues/1652 for more details.
The described solution there is to add `--env jest-environment-node-debug` as argument to the runtime configuration.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"conventional-changelog-lint": "^1.1.9",
"husky": "^0.13.3",
"jest": "^20.0.3",
"jest-environment-node-debug": "^2.0.0",
"lodash.clonedeep": "^4.5.0",
"parallel-webpack": "^2.0.0",
"regenerator-runtime": "^0.10.5",
Expand Down
4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2536,6 +2536,10 @@ jest-environment-jsdom@^20.0.3:
jest-util "^20.0.3"
jsdom "^9.12.0"

jest-environment-node-debug@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/jest-environment-node-debug/-/jest-environment-node-debug-2.0.0.tgz#5ef098942fec1b6af5ee4841f4f8a2ff419562f9"

jest-environment-node@^20.0.3:
version "20.0.3"
resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-20.0.3.tgz#d488bc4612af2c246e986e8ae7671a099163d403"
Expand Down

0 comments on commit 13fb9ae

Please sign in to comment.