Open dkershner6 opened 2 weeks ago
Attention: Patch coverage is 94.52055%
with 4 lines
in your changes missing coverage. Please review.
Project coverage is 96.36%. Comparing base (
ad20d2c
) to head (f5fd5c3
). Report is 116 commits behind head on main.
Files | Patch % | Lines |
---|---|---|
src/javascript/jest.ts | 92.98% | 4 Missing :warning: |
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Had to change the field from private
to public
on ProjenrcTs
, and store projenrcTs
on TypeScriptProject
, and change the order of the constructor to get there, but everything seems as it should now, @mrgrain .
As I was diving into the new change, I realized there were several very similar dirTestMatch
pattern creations going on (and I was creating one more), so I centralized the logic to the Jest
class in a static method, made it use the Jest best practices (from the docs and defaults), then used that everywhere, including the new feature.
So, it's a bit more than I intended to take on, but should now work really well and the responsibilities are in the correct places (and should be easier to maintain that in the future). @mrgrain
Another nudge for @mrgrain .
Still on my list. Should get to it this week. Sorry for the delay.
Still on my list. Should get to it this week. Sorry for the delay.
No worries, just wanna be sure it wasn't forgotten.
@mrgrain , this has been updated.
In order to accommodate the discover
method, I had to lazily load the testMatches. I am reasonably sure this actually fixed a bug where all testMatches added after initialization were ignored (but I don't know why all tests were passing, as this appears to be tested, somehow using the discover method seems to be different ordering, triggering defaults), but it does require a ts-expect-error
due to types.
Fixes https://github.com/projen/projen/issues/3630
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.