From e314ea7ba27a21deff278f8b4ded984da690073e Mon Sep 17 00:00:00 2001 From: Conrad Buck Date: Sat, 23 Apr 2022 17:16:50 -0400 Subject: [PATCH] Fix test debugging instructions for contributors --- CONTRIBUTING.md | 5 +++-- package.json | 2 +- yarn.lock | 10 +++++----- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 23ab7c7adad5..1dc3772026e8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -169,10 +169,11 @@ $ TEST_DEBUG=true make test
More options - 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 ```

diff --git a/package.json b/package.json index ba1b575c8f15..1ce1134b0553 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/yarn.lock b/yarn.lock index a895899e2ddf..e94837eee46b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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 @@ -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 @@ -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