-
-
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
Expose a way for jest-cli to run jest with a specific project(s) #7542
Comments
Related: #6189 |
What would the API look like? I have a quick proposal:
Example: module.exports = {
projects: [{
projectName: 'unit'
...<some stuff>
}, {
projectName: 'e2e',
...<some stuff>
}]
} To only run the unit tests, we would execute This is a very quick proposal to get the discussion started. I haven't thought through all the implications. UPDATE: |
Cannot wait for this. I always have to go edit the jest config just to run a damn test in the debugger. Then the edited config gets checked in sometimes. There has got to be a better way. |
You can use https://github.com/jest-community/jest-watch-select-projects in watch mode. Not sure if it helps in your case or not, though |
In our case, we have a
Then we run
to select the project (: |
This would be great :-). I want to have a centralised |
@yacinehmito Did start to look into this? Would be a great feature to have. |
@thernstig Sorry I did not answer earlier. Yes I did look into it. A PR is currently open: #8612. |
Was searching around and I found this thread, So thanks to everyone here, Even though I have a small proposal regarding the What about have |
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. |
🚀 Feature Proposal
Allow
jest-cli
to run jest with a specific project(s) configuration(s) declared from theprojects
key.Motivation
The motivation for this is to allow for different jest runners to be executed along with its own configuration. Currently this is only possible if different directories have it's own jest config. But in the case that you only have one jest config and your different configurations exist through the
projects
key, this can't be done.Example
Given a jest config, I want to be able to run jest with the configuration using
jest-runner-eslint
andjest-runner-prettier
.Pitch
I believe that this feature should bring good value to jest as a whole since it ties into the idea of having jest as a platform and takes advantage of the capabilities of the different jest runners
The text was updated successfully, but these errors were encountered: