mhy
  • Introduction
  • Basics
    • Installation
    • Usage
    • UI
    • Ecosystem
    • How does it work?
  • Tools
    • Built-ins
      • boot
      • config
      • dep
      • options
      • ui
    • Processes
      • eslint
      • jest
      • node
      • nodemon
      • prettier
      • standard-version
      • storybook-start
      • storybook-build
      • tsc
      • webpack
      • webpack-bundle-analyzer
      • webpack-dev-server
    • Configs
      • eslint
      • gitignore
      • jest
      • manifest
      • mhy
      • npmignore
      • prettier
      • storybook
      • typescript
      • webpack
  • IDE setup
    • WebStorm & PHPStorm
    • VSCode
  • Recipes and Examples
    • package.json overrides
    • Add your own
  • Others
    • FAQ
    • Help
    • Development of mhy
    • Suggest a library
Powered by GitBook
On this page
  • Default command
  • CLI Options
  • Examples
  • Default CLI
  • Only test one file
  • Update snapshots
  • Watcher

Was this helpful?

  1. Tools
  2. Processes

jest

  • Jest is using mhy/configs/swc config. You don't want your test environment to act differently.

Default command

jest --passWithNoTests --colors --config=mhy/configs/jest

CLI Options

https://jestjs.io/docs/en/cli.html

Examples

Default CLI

mhy jest

Only test one file

mhy jest src/test.js

Update snapshots

mhy jest -u

Watcher

mhy jest --watch
PreviouseslintNextnode

Last updated 2 years ago

Was this helpful?