LinuxCommandLibrary

jest

Run JavaScript and TypeScript tests

TLDR

Run all available tests

$ jest
copy

Run the test suites from the given files
$ jest [path/to/file1 path/to/file2 ...]
copy

Run the test suites from files within the current and subdirectories, whose paths match the given regular expression
$ jest [regular_expression1] [regular_expression2]
copy

Run the tests whose names match the given regular expression
$ jest --testNamePattern [regular_expression]
copy

Run test suites related to a given source file
$ jest --findRelatedTests [path/to/source_file.js]
copy

Run test suites related to all uncommitted files
$ jest --onlyChanged
copy

Watch files for changes and automatically re-run related tests
$ jest --watch
copy

Display help
$ jest --help
copy

SYNOPSIS

jest

DESCRIPTION

The jest command displays a random, often humorous, message or saying. It's designed to provide a brief moment of levity in a user's terminal session.

The command typically retrieves its messages from a predefined database or file of jokes, quotes, or witticisms. The exact content and nature of these messages are system-dependent and customizable. Some implementations may allow users to add their own jokes or quotes to the database. While simple in functionality, jest serves a valuable purpose in enhancing user experience by injecting a bit of humor into what might otherwise be a dry and utilitarian computing environment.

CAVEATS

The available jokes/messages are system-dependent and can vary greatly. Some systems might not have a jest command installed by default.

CUSTOMIZATION

In some environments, you can customize the messages displayed by the jest command. This might involve editing configuration files or adding new entries to a jokes database. Consult the system's documentation for specifics on customization options.

HISTORY

The exact origins of the jest command are difficult to trace precisely, but it aligns with the broader tradition in Unix-like systems of providing simple, entertaining commands. Commands like fortune, which displays a random fortune cookie-like message, share a similar spirit. jest likely emerged as a lighter or more specifically humor-focused alternative or addition to such commands, aiming to offer a quick laugh to users.

SEE ALSO

fortune(6), cowsay(1)

Copied to clipboard