API
The main entry exports six namespaces:
import { configs, extract, fields, matchers, presets, resolver } from '@repobuddy/jest'// CommonJSconst { configs, extract, fields, matchers, presets, resolver } = require('@repobuddy/jest')| Namespace | What it holds | Page |
|---|---|---|
configs |
The partial configs the presets are built from, and the test identifier lists | configs |
fields |
Values and helpers for single Jest config fields: transforms, mappers, watch plugins | fields |
extract |
extractPackages() and toPackageName(): list the packages a Jest config references |
extract |
matchers |
The toSatisfies matcher |
matchers |
presets |
Every preset as a config object | presets |
resolver |
sync and async: a Jest resolver that falls back to package.json imports |
resolver |
Other entries
Section titled “Other entries”| Entry | Exports |
|---|---|
@repobuddy/jest/matchers |
toSatisfies. See matchers. |
@repobuddy/jest/presets/<name> |
One preset as its default export. See presets. |
@repobuddy/jest/presets/<name>/jest-preset |
The same preset, at the path Jest looks for. |
@repobuddy/jest/package.json |
The package manifest. |
Every entry has an import (ESM) and a require (CommonJS) build, each with type declarations. No other subpath is
exported, so @repobuddy/jest/resolver does not resolve.