Tester Configuration

Watch on start

Determines whether tests should run when a component changes. By default, this option is set to false. Note that this is only relevant when running bit start.

Set the following configuration in your workspace.jsonc file:

/* @filename: workspace.jsonc */

{
  "teambit.defender/tester": {
    "watchOnStart": true
  }
}
CopiedCopy

Test files

Set the following glob patterns in the relevant env's env.jsonc file, to determine which files should be tested:

/* @filename: path/to/env/env.jsonc */
{
  "patterns": {
    /* files to be included in the component testing */
    "tests": ["**/*.spec.*", "**/*.test.*"]
  }
}
CopiedCopy