ExpectSnapshotState

import { ExpectSnapshotState } from "jsr:@ende/expect";

interface ยท experimental

interface ExpectSnapshotState

State for snapshot testing, following Jest's expect.getState()/expect.setState() API.

Properties

currentTestName

currentTestName?: string | undefined

The name of the currently running test. Required for snapshot testing.

testPath

testPath?: string | undefined

The file path of the currently running test. Auto-detected from stack trace if not set.

Source