probe function
Mounts an effect on a fixture with the fake render, runs setup and two updates with pointer and scroll movement, and reports what it read and whether it rests.
import { probe } from '@dioramajs/effects/testing'. For the tests and the metadata of effect modules; needs a DOM such as happy-dom.
function probe(effect: Effect, options?: ProbeOptions): Promise<ProbeResult>Parameters
| Name | Type | Description |
|---|---|---|
effect | Effect | |
options? | ProbeOptions | Default |
Defined in packages/effects/src/testing/probe.ts.