Forrest logo
back to context overview

jest

List of commands for jest:

  • jest:tldr:091f2 jest: Show help.
    $ jest --help
    try on your machine
    explain this command
  • jest:tldr:6b512 jest: Run test suites related to all uncommitted files.
    $ jest --onlyChanged
    try on your machine
    explain this command
  • jest:tldr:72586 jest: Run the test suites from the given files.
    $ jest ${filename1} ${filename2}
    try on your machine
    explain this command
  • jest:tldr:9a638 jest: Run test suites related to a given source file.
    $ jest --findRelatedTests ${path-to-source_file-js}
    try on your machine
    explain this command
  • jest:tldr:abca0 jest: Run the tests whose names match the given regular expression.
    $ jest --testNamePattern ${regular_expression}
    try on your machine
    explain this command
  • jest:tldr:becde jest: Watch files for changes and automatically re-run related tests.
    $ jest --watch
    try on your machine
    explain this command
  • jest:tldr:ee2c1 jest: Run all available tests.
    $ jest
    try on your machine
    explain this command
back to context overview