-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
specify custom runner on CLI #5382
Comments
I see one thing I overlooked is that specifying a different runner opens up different config settings that one would use. In that way its probably not really reasonable to specify various runners on cli all sharing the same config. |
You can use |
Ah! I didn’t note the use case for runners there. Going to try it thanks ! |
@SimenB I got everything working and its much better. The only issue I see now is that the CLI ``--projects` doesn't appear to do anything e.g.:
The docs state I just project |
Using the CLI option you have to point to a file with configuration - you can't use Maybe that should be possible, though... |
@SimenB why is that explicitly needed? Shouldn't it be picking up the default configuration in my package.json?
|
Being able to use inline config is a new feature (#5176), your use case is a new one. As I already said: "Maybe that should be possible, though..." |
@SimenB ok I misunderstood you sorry. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Do you want to request a feature or report a bug?
feature
What is the current behavior?
none
What is the expected behavior?
Be able to specify custom runner on the CLI like
yarn jest --runner jest-runner-prettier
. The alternative I'm seeing is that I will need to create a new file for prettier and tsc runners (my case) while leaving the main config in package.json used for regular tests. Maybe I'm thinking about this wrong and runner on cli is a bad idea! Not sure.The text was updated successfully, but these errors were encountered: