Tracking the coverage create empty table for index.html
See original GitHub issueHi, I am following steps mentioned under “Tracking the coverage”, I got nyc, babel-istanbul installed, updates the jest-playwright.config.js and all other required config files. I could able to run sample test and see the coverage folder with index.html gets created but what i see is the html has empty table. I intentionally make my test fail so i could see the coverage.
I attached all my config files here for reference, wondering if i missing anything and messing it up by installing too many unnecessary\duplicate things.
I also see error message below after execution>> Thanks in advance.
// .babelrc
{
"env": {
"test": {
"plugins": [ "istanbul" ]
}
}
}
_Ran all test suites. Archive.zip
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ test: jest
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! /Users/khobraj/.npm/_logs/2020-07-31T20_12_16_013Z-debug.log ----------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
---|---|---|---|---|---|
All files | 0 | 0 | 0 | 0 | |
---------- | --------- | ---------- | --------- | --------- | ------------------- |
npm ERR! code ELIFECYCLE | |||||
npm ERR! errno 1 | |||||
npm ERR! @ coverage: nyc npm run test |
|||||
npm ERR! Exit status 1 | |||||
npm ERR! | |||||
npm ERR! Failed at the @ coverage script. | |||||
npm ERR! This is probably not a problem with npm. There is likely additional logging output above. |
npm ERR! A complete log of this run can be found in: npm ERR! /Users/khobraj/.npm/logs/2020-07-31T20_12_16_118Z-debug.log
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Hi sorry for the late response. What kind of build system are you using for the your client side code? I you haven’t seen, we have a full working example located here: https://github.com/playwright-community/playwright-jest-examples/tree/master/create-react-app-coverage
@mxschmitt , okay to close ticket unless there is anything more to add.