Skip to main content

jest-test-debug-vscode

  1. Find the test file and test pattern you want to test.

It is good to debug individual "test"

for example:

If I want to test only below

image

Using lerna we use following command

lerna exec --scope=<package_name> 'yarn test Configuration.test -- -t "Test update value"'

  1. To test with vscode debugger update the package path and test args under .vscode/launch.json
image
  1. And run the default test.

Don't push the changes as it is for your internal testing only.

image
  1. Put debugger where you want to debug.
image