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

Add bun:test option similar to Jest's coveragePathIgnorePatterns #4021

Open
jakeboone02 opened this issue Aug 6, 2023 · 4 comments · May be fixed by #12238
Open

Add bun:test option similar to Jest's coveragePathIgnorePatterns #4021

jakeboone02 opened this issue Aug 6, 2023 · 4 comments · May be fixed by #12238
Labels
enhancement New feature or request jest Something related to the `bun test` runner

Comments

@jakeboone02
Copy link
Contributor

What is the problem this feature would solve?

Some files are executed during tests but are irrelevant when it comes to coverage reporting and percentage calculations. bun:test needs a way to execute the files while ignoring them for the purposes of coverage.

What is the feature you are proposing to solve the problem?

A configuration option similar (or equivalent) to Jest's coveragePathIgnorePatterns. Documentation here.

What alternatives have you considered?

No response

@jakeboone02 jakeboone02 added the enhancement New feature or request label Aug 6, 2023
@Electroid Electroid added the jest Something related to the `bun test` runner label Aug 6, 2023
@Jarred-Sumner
Copy link
Collaborator

I think this should be a glob matcher instead of a regex

But we don't have an existing implementation of a fast glob matcher

@jakeboone02
Copy link
Contributor Author

I think this should be a glob matcher instead of a regex

Yeah, glob would be fine.

But we don't have an existing implementation of a fast glob matcher

This surprises me! What would it take to write one? Is there a fast algorithm that just needs to be implemented in Zig, or are all the current implementations just slow?

@paulleonartcalvo
Copy link

I saw that bun just publish a glob util in 1.0.14, does this mean we might see glob matching soon?

@Jarred-Sumner
Copy link
Collaborator

Jarred-Sumner commented Nov 24, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request jest Something related to the `bun test` runner
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants