I start my tests with the command npm "test"(jest --config=jest.config.json --color --watch) in watch mode so it waits for changes, when there're any changes tests are rerun automatically, and I see the following options in my console.
Watch Usage
› Press p to filter by a filename regex pattern.
› Press t to filter by a test name regex pattern.
› Press q to quit watch mode.
› Press Enter to trigger a test run.
But when I press any of these keys nothing happens. So I have to type npm test -- -u manually to renew the snapshot, for example.
Here's my config.
{
"setupFiles": [
"raf/polyfill",
"<rootDir>/src/tests/setupTests.js"
],
"snapshotSerializers": [
"enzyme-to-json/serializer"
]
}
jest: v20.0.4, npm: v5.6.0, node: v8.9.3, Windows 10
Aucun commentaire:
Enregistrer un commentaire