Repo created from https://github.com/johncrim/ng-jest-starter .
This starter project contains a single library (ui-lib
), and no angular apps. It contains both Karma tests (*.karma-spec.ts
) and Jest tests (*.spec.ts
), but no
Protractor or other e2e tests.
- In VS Code, set breakpoints in a test file or in Angular code.
- Type
Ctrl+Shift+D
to view the Debug pane, then ensure that "Jest All" or "Jest Current File" is selected in the launch configuration. - Hit the F5 key to start debugging.
- Wait for your breakpoint(s) to be hit.