flex-template-web/docs/testing.md
2018-05-04 17:04:41 +03:00

1.2 KiB

Testing Flex template for the web

The test setup is based on the create-react-app test setup and is using the Jest testing framework. See the Testing Components and Experimental Snapshot Testing sections in the create-react-app documentation.

Running tests

To start the test watcher that automatically updates when files change, run

yarn test

If you want to run the tests once and not start the watcher, run

CI=true yarn test

Note that this also runs the linter.

Jest

To learn more about testing with Jest, read the following documentation: