Skip to content

Conversation

setchy
Copy link
Member

@setchy setchy commented Apr 11, 2024

Since enabling collectCoverage by default, husky will routinely fail since the changes files do not cover the test cases to get a correct coverage gating measure.

Changing to run all tests as part of the husky pre-commit hook. I think this OK.

Alternatively, if we want to continue running on changes files only, we could disable the coverage check
pnpm test -- --onlyChanged --collectCoverage=false

@setchy setchy added the build Build, action or package manager changes label Apr 11, 2024
@setchy setchy added this to the Release 5.3.0 milestone Apr 11, 2024
@setchy setchy merged commit 1b18d67 into main Apr 11, 2024
@setchy setchy deleted the build/husky-ignore-coverage branch April 11, 2024 15:56
@afonsojramos
Copy link
Member

I suppose that since our codebase is quite small, it doesn't really make a big difference,. otherwise I'd suggest the other route

@setchy
Copy link
Member Author

setchy commented Apr 11, 2024

Agree, can adjust as we grow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Build, action or package manager changes
Development

Successfully merging this pull request may close these issues.

3 participants