Intent: Get test coverage for tests run on Auth0 rules
When we run unit tests with jest yarn test --coverage
:
- zero results for coverage on rules as per best practices
- the coverage for hooks & other scripts comes up as intended
- this is a jest bug
some of the things that we tried without success:
- No coverage reports for files that are executed by vm.runInContext. · Issue #9349 · facebook/jest · GitHub
- Jest CLI Options · Jest
this is not an Auth0 bug or limitation - has anyone faced this? what worked for you?
Thanks