Skip to main content

View Test Coverage

Check default coverage

At the root of the repo:

  1. Run pnpm test -- -- --coverage
  2. Open index.html in the /coverage/lcov-report directory

Check coverage against specific files

In infrastructure/jest/jest.config.js, remove the current default selected files in collectCoverageFrom and add your own directory or file.

  collectCoverageFrom: [
'src/scenes/Accounts/**/*.{js,jsx,ts,tsx}',
],

See the Jest Documentation for more information on collectCoverageFrom