testWatch
Runs the test suite in watch mode, re-running the tests the changed files affect. Jest needs a git or Mercurial repository for that.
Import:
import { testWatch } from '@mnaoumov/typescript-dev-toolkit/test-runners/jest';Signature:
function testWatch(options: TestOptions): Promise<void>Parameters:
| Parameter | Type | Description |
|---|---|---|
options |
TestOptions | The options for the test. |
Returns: Promise<void> — A Promise that resolves when the watcher exits.