All apps/Jest

Jest

jest

A JavaScript testing framework.

Runs as jest|macOS, Linux, Windows|jestjs.io

Command form

ai-draft · 3 tasks · 20 fields

Run Jest with common selection, coverage and watch options. Reporters, projects and many advanced flags are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui jest
Run testsExample values, fixed in this page — nothing here reaches a terminal
Basic
Test path patterns
string
Test name pattern
string
TasksEach one presets the form for one job
Run tests
patternstest_name
Run with coverage
patternscoverage
Watch mode
watch
ParametersOnly these flags are editable in the form
Test path patterns
Regex patterns matched against test file paths.
string · positional 0 · repeatable
Test name pattern
Run only tests whose name matches this regex.
string
--testNamePattern-t
Config file
path
--config-c
Collect coverage
Enable coverage.
boolean
--coverage
Watch changed files
Rerun tests related to changed files.
boolean
--watch
Watch all
Rerun all tests when something changes.
boolean
--watchAll
Only changed
Run tests based on files changed in the repository.
boolean
--onlyChanged-o
Changed since
Run tests related to changes since this branch or commit.
string
--changedSince
Run serially
Run all tests in the current process.
boolean
--runInBand-i
Max workers
Number or percentage of workers.
string
--maxWorkers-w
Update snapshots
Re-record every snapshot that fails.
boolean
--updateSnapshot-u
CI mode
Fail instead of writing new snapshots.
boolean
--ci
Verbose
Display individual test results.
boolean
--verbose
Silent
Prevent tests from printing console messages.
boolean
--silent
JSON output
Print test results as JSON.
boolean
--json
Pass with no tests
Succeed when no test files are found.
boolean
--passWithNoTests
Detect open handles
Print open handles preventing a clean exit.
boolean
--detectOpenHandles
Force exit
Exit after all tests complete.
boolean
--forceExit
List tests
List the tests Jest would run and exit.
boolean
--listTests
Test timeout (ms)
Default timeout of a test in milliseconds.
integer
--testTimeout
SourcesEvery flag above is checked against these
src
completion

github.com

Before it fills your prompt, Otty checks the installed jest against its version. A form that does not match your version is not offered.