# jest

> Jest suites: test lint rules and coverage floors.

Jest suites: test lint rules and coverage floors. It requires [`javascript`](/reference/configurations/javascript/). The [Tests and coverage guide](/checks/testing/) explains the setup.

## Checks

| Check                                               | Stage  | Level         | What it does                                   |
| --------------------------------------------------- | ------ | ------------- | ---------------------------------------------- |
| [`jest/coverage`](/reference/checks/jest/coverage/) | `push` | `recommended` | Runs Jest and checks all four coverage floors. |

## Settings

| Setting                                                             | What it sets                                                  |
| ------------------------------------------------------------------- | ------------------------------------------------------------- |
| [`coverage.lines`](/reference/gspot-toml/#coverage.lines)           | The minimum percentage of source lines covered by tests.      |
| [`coverage.branches`](/reference/gspot-toml/#coverage.branches)     | The minimum percentage of source branches covered by tests.   |
| [`coverage.functions`](/reference/gspot-toml/#coverage.functions)   | The minimum percentage of source functions covered by tests.  |
| [`coverage.statements`](/reference/gspot-toml/#coverage.statements) | The minimum percentage of source statements covered by tests. |

## Selected when

gspot selects it in a scope with filenames `jest.config.*`, or dependencies `jest`.

## Tools and versions

| Tool               | Version                  |
| ------------------ | ------------------------ |
| jest               | Any, install it yourself |
| eslint-plugin-jest | `29.16.6`                |
