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

Docs regarding CLI parameters don't seem to work. #43

Open
mikemaccana opened this issue Jan 5, 2024 · 0 comments
Open

Docs regarding CLI parameters don't seem to work. #43

mikemaccana opened this issue Jan 5, 2024 · 0 comments

Comments

@mikemaccana
Copy link

This may be a docs issue, rather than a code issue. I have TS tests using node:test and they work fine with esrun:

npx esrun src/index.test.ts

I want to pass some options to node test runner, specifically https://nodejs.org/api/cli.html#--test-name-pattern. Per the docs at https://github.com/digital-loukoum/esrun?tab=readme-ov-file#cli-parameters-syntax I am using:

npx esrun src/index.test.ts --test-name-pattern="custom"

However this doesn't seem to work. I also guessed:

npx esrun src/index.test.ts -- --test-name-pattern="custom"

But that doesn't work either.

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

No branches or pull requests

1 participant