ExpectSnapshotState
import { ExpectSnapshotState } from "jsr:@ende/expect";interface ยท experimental
interface ExpectSnapshotStateState for snapshot testing, following Jest's
expect.getState()/expect.setState() API.
Properties
currentTestName
currentTestName?: string | undefinedThe name of the currently running test. Required for snapshot testing.
testPath
testPath?: string | undefinedThe file path of the currently running test. Auto-detected from stack trace if not set.