Skip to content

Commit

Permalink
Fix test debugging instructions for contributors
Browse files Browse the repository at this point in the history
  • Loading branch information
conartist6 committed Apr 25, 2022
1 parent bdc4eb5 commit e314ea7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
5 changes: 3 additions & 2 deletions CONTRIBUTING.md
Expand Up @@ -169,10 +169,11 @@ $ TEST_DEBUG=true make test

<details>
<summary>More options</summary>
Or you can directly use Yarn

You can also run `jest` directly, but you must remember to include `--runInBand` or `-i` or you [may not hit breakpoints with the chrome debugger](https://github.com/nodejs/node/issues/26609).

```sh
$ yarn node --inspect-brk node_modules/jest/bin/jest.js --runInBand
yarn run --inspect-brk jest -i packages/package-to-test
```
</details>
<br>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -62,7 +62,7 @@
"husky": "^7.0.4",
"import-meta-resolve": "^1.1.1",
"jest": "^27.4.0",
"jest-light-runner": "^0.1.0",
"jest-light-runner": "^0.1.3",
"jest-worker": "^27.4.0",
"lint-staged": "^9.2.0",
"mergeiterator": "^1.4.4",
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Expand Up @@ -5947,7 +5947,7 @@ __metadata:
husky: ^7.0.4
import-meta-resolve: ^1.1.1
jest: ^27.4.0
jest-light-runner: ^0.1.0
jest-light-runner: ^0.1.3
jest-worker: ^27.4.0
lint-staged: ^9.2.0
mergeiterator: ^1.4.4
Expand Down Expand Up @@ -10631,9 +10631,9 @@ fsevents@^1.2.7:
languageName: node
linkType: hard

"jest-light-runner@npm:^0.1.0":
version: 0.1.0
resolution: "jest-light-runner@npm:0.1.0"
"jest-light-runner@npm:^0.1.3":
version: 0.1.3
resolution: "jest-light-runner@npm:0.1.3"
dependencies:
expect: ^27.5.1
jest-circus: ^27.5.1
Expand All @@ -10644,7 +10644,7 @@ fsevents@^1.2.7:
supports-color: ^9.2.1
peerDependencies:
jest: ^27.0.0
checksum: b5381d1d1123230cc8491e2639f0c512c0033cdbff9e27108f46e339a33fb8392abd22666d991301c88d505f4579faad1422c853cf46825b8de149f1d56b0014
checksum: 63436c7d2f73d3df0636cb689213eb09789b5677266747e8fc0eeebfef6fc8f4f7f4e138a962c621e6ab80fea8f0fd827e77c2fa50d499aa4fc1ffdc347f00d0
languageName: node
linkType: hard

Expand Down

0 comments on commit e314ea7

Please sign in to comment.