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

test: add CLI flag to disable test, spec filename filter #16484

Open
DonIsaac opened this issue Jan 17, 2025 · 1 comment
Open

test: add CLI flag to disable test, spec filename filter #16484

DonIsaac opened this issue Jan 17, 2025 · 1 comment
Labels
bun:test Something related to the `bun test` runner enhancement New feature or request

Comments

@DonIsaac
Copy link
Contributor

What is the problem this feature would solve?

Many repos using tap or mocha put test files in a test folder without test or spec in their names. Migrating to bun test requires renaming all of their test files.

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

Add a CLI flag (maybe something like bun test --all-files) or an environment variable to disable filename filtering.

What alternatives have you considered?

Renaming all test files. While doable, it adds an extra step for migrating older repos to bun.

@DonIsaac DonIsaac added bun:test Something related to the `bun test` runner enhancement New feature or request labels Jan 17, 2025
@Electroid
Copy link
Contributor

We could also do something like bun test --style=mocha, which would allow us to do a bunch of other stuff, specific to mocha. Even better if we can just figure this out automatically from your package.json.

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

No branches or pull requests

2 participants