Skip to content

Commit 516bbca

Browse files
timfishAbhiPrasad
authored andcommitted
yarn.lock
1 parent 7fafce9 commit 516bbca

File tree

3 files changed

+197
-1254
lines changed

3 files changed

+197
-1254
lines changed

.vscode/launch.json

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -52,35 +52,6 @@
5252
"internalConsoleOptions": "openOnSessionStart",
5353
"outputCapture": "std"
5454
},
55-
// Run a specific test file in watch mode (must have file in currently active tab when hitting the play button).
56-
// NOTE: If you try to run this and VSCode complains that the command `shellCommand.execute` can't be found, go
57-
// install the recommended extension Tasks Shell Input.
58-
{
59-
"name": "Debug unit tests - just open file",
60-
"type": "node",
61-
"cwd": "${workspaceFolder}/packages/${input:getPackageName}",
62-
"request": "launch",
63-
"program": "${workspaceFolder}/node_modules/.bin/jest",
64-
"args": [
65-
"--watch",
66-
// this runs one test at a time, rather than running them in parallel (necessary for debugging so that you know
67-
// you're hitting a single test's breakpoints, in order)
68-
"--runInBand",
69-
// coverage messes up the source maps
70-
"--coverage",
71-
"false",
72-
// remove this to run all package tests
73-
"${relativeFile}"
74-
],
75-
"sourceMaps": true,
76-
"smartStep": true,
77-
// otherwise it goes to the VSCode debug terminal, which prints the test output or console logs (depending on
78-
// "outputCapture" option here; default is to show console logs), but not both
79-
"console": "integratedTerminal",
80-
// since we're not using it, don't automatically switch to it
81-
"internalConsoleOptions": "neverOpen"
82-
},
83-
8455
// Run a specific test file in watch mode (must have file in currently active tab when hitting the play button).
8556
// NOTE: If you try to run this and VSCode complains that the command `shellCommand.execute` can't be found, go
8657
// install the recommended extension Tasks Shell Input.

CONTRIBUTING.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -73,23 +73,6 @@ the tests in each location. Check out the `scripts` entry of the corresponding `
7373

7474
Note: you must run `yarn build` before `yarn test` will work.
7575

76-
## Debugging Tests
77-
78-
If you run into trouble writing tests and need to debug one of them, you can do so using VSCode's debugger.
79-
80-
0. If you don't already have it installed, install the Tasks Shell Input extension, which you'll find in the Extensions
81-
tab in the sidebar as one of the recommended workspace extensions.
82-
83-
1. Place breakpoints or `debugger` statements in the test or the underlying code wherever you'd like `jest` to pause.
84-
2. Open the file containing the test in question, and make sure its tab is active (so you can see the file's contents).
85-
3. Switch to the debugger in the sidebar and choose `Debug unit tests - just open file` from the dropdown.
86-
4. Click the green "play" button to run the tests in the open file in watch mode.
87-
88-
Pro tip: If any of your breakpoints are in code run by multiple tests, and you run the whole test file, you'll land on
89-
those breakpoints over and over again, in the middle of tests you don't care about. To avoid this, replace the test's
90-
initial `it` or `test` with `it.only` or `test.only`. That way, when you hit a breakpoint, you'll know you got there are
91-
part of the buggy test.
92-
9376
## Debug Build Flags
9477

9578
Throughout the codebase, you will find a `__DEBUG_BUILD__` constant. This flag serves two purposes:

0 commit comments

Comments
 (0)