jest preset to run angular specs within jsdom and improved coverage accuracy.
The preset ist about 3 times faster as run with ts-jest
,
because TypeScript
code ist transpiled directly and not run through Babel
.
Additionally the outputted JS is patched for accurate istanbul coverage.
npm i -D jest-preset-ngx
Edit your jest configuration like:
{
"preset": "jest-preset-ngx"
}