mercredi 24 octobre 2018

Run specific Jest configuration?

When specifying projects in a jest configuration file as a multi-configuration object such as specified in the documentation:

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

Is it possible to run just one of these configurations at a time?

I do not want to have separate projects for each configuration with separate configurations because each project still needs to run with rootDir equal to the main project.

Aucun commentaire:

Enregistrer un commentaire