View Test Coverage
Check default coverage
At the root of the repo:
- Run
pnpm test -- -- --coverage - Open
index.htmlin the/coverage/lcov-reportdirectory
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