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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run projects via names #9190

Closed
thernstig opened this issue Nov 15, 2019 · 2 comments
Closed

Run projects via names #9190

thernstig opened this issue Nov 15, 2019 · 2 comments

Comments

@thernstig
Copy link
Contributor

馃殌 Feature Proposal

It would be cool if one could give projects a 'name' property, where one later can select those names via CLI. Imagine you have this (from the projects docs):

{
  "projects": [
    {
      "name": "test",
      "displayName": "test"
    },
    {
      "name": "lint",
      "displayName": "lint",
      "runner": "jest-runner-eslint",
      "testMatch": ["<rootDir>/**/*.js"]
    }
  ]
}

Issuing a jest --project test or jest --project lint would just run the respective tests.

Motivation

It would simplify running specific projects. A project can contain specific testMatch patterns, and there is no way to run just one project that could match files all over the repo.

@thernstig thernstig changed the title Projects name Run projects via names Nov 15, 2019
@SimenB
Copy link
Member

SimenB commented Nov 16, 2019

Duplicate of #7542

@SimenB SimenB marked this as a duplicate of #7542 Nov 16, 2019
@SimenB SimenB closed this as completed Nov 16, 2019
@github-actions
Copy link

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.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants