Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing rework. Coverage! #273

Merged
merged 21 commits into from
Mar 15, 2024
Merged

Testing rework. Coverage! #273

merged 21 commits into from
Mar 15, 2024

Conversation

danfuzz
Copy link
Owner

@danfuzz danfuzz commented Mar 15, 2024

This PR is the result of helpful suggestion from a member of the Jest team, which indicated that it is possible to get Jest to find files to test (both source under test and unit test files) in node_modules directories. (It wasn't obvious that this was possible, and it took me a half day of looking at the Jest code before I filed the bug which elicited the very helpful suggestion.)

After getting the new configuration done, I was very pleasantly surprised that test coverage reporting Just Worked™. And also happy to note that, it turns out, the project has ~50% coverage of lines-of-code and ~75% coverage of functions. That's not actually too shabby, given that I only bother writing unit tests when it seems that doing so will be a significant net development-time benefit.

@danfuzz danfuzz merged commit ced7450 into main Mar 15, 2024
1 check passed
@danfuzz danfuzz deleted the more-testing branch March 15, 2024 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant