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

File inputs/outputs #5

Open
cmcculloh-kr opened this issue Jun 30, 2022 · 1 comment
Open

File inputs/outputs #5

cmcculloh-kr opened this issue Jun 30, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@cmcculloh-kr
Copy link

It would be nice if I could say:

jest-test-gen src/**.*.js

And it would just run on every file it finds that matches the pattern I specified.

It would be even better if I could say:

jest-test-gen src/**.*.js __tests__

And it would run on every file it finds that matches the pattern I specified and spit the generated tests out into the directory I specified (__tests__ in this case).

@egm0121 egm0121 added the enhancement New feature or request label Jul 5, 2022
@egm0121
Copy link
Owner

egm0121 commented Jul 5, 2022

Sounds like a nice improvement to support glob patterns (https://www.npmjs.com/package/glob) for generating multiple test files at a time, might need some time to work on this.

In the meantime you can probably run something like this to generate multiple tests at once: find src/**/*.js -exec jest-test-gen {} \;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants