mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-25 22:37:18 +10:00
1.2 KiB
1.2 KiB
Sharetribe Starter App Testing
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:
- Getting Started
- Tutorial - React
- Tutorial - Async
- Snapshot Testing blog post
- API Reference lists the global environment with the available functions and the assertion matchers