update coverage package (jsdevtools/coverage-istanbul-loader is more up to date, at least it works with webpack5)
ignore /coverage dir
5k diff in package-lock.json, because coverage reporter uses babel heavily
integrate coverage lib in cypress code
:warning: There is a bug when parsing code, that has coverage-helper-code.
More specifically, aurelia-validation does not parse the helper code correctly https://github.com/aurelia/testing/issues/94.
I found a fix, but would need to PR to the aurelia repo and stuff.
(Maybe we just fork ourselves, will create a ticket)
Testing
(note, the section below is from the updated README
Have to run a separate command to instrument the code (instrument = add helper code, that tracks when code was executed)
npm run start-dev:cov
What was done
jsdevtools/coverage-istanbul-loader
is more up to date, at least it works with webpack5)package-lock.json
, because coverage reporter usesbabel
heavily:warning: There is a bug when parsing code, that has coverage-helper-code. More specifically, aurelia-validation does not parse the helper code correctly https://github.com/aurelia/testing/issues/94. I found a fix, but would need to PR to the aurelia repo and stuff. (Maybe we just fork ourselves, will create a ticket)
Testing
(note, the section below is from the updated README Have to run a separate command to instrument the code (instrument = add helper code, that tracks when code was executed)
npm run start-dev:cov
Then can run other e2e commands
Before
After