MCPcopy
hub / github.com/vitest-dev/vitest / getSnapshotState

Method getSnapshotState

packages/snapshot/src/client.ts:113–121  ·  view source on GitHub ↗
(filepath: string)

Source from the content-addressed store, hash-verified

111 }
112
113 getSnapshotState(filepath: string): SnapshotState {
114 const state = this.snapshotStateMap.get(filepath)
115 if (!state) {
116 throw new Error(
117 `The snapshot state for '${filepath}' is not found. Did you call 'SnapshotClient.setup()'?`,
118 )
119 }
120 return state
121 }
122
123 match(options: AssertOptions): MatchResult {
124 const {

Callers 10

finishMethod · 0.95
skipTestMethod · 0.95
clearTestMethod · 0.95
matchMethod · 0.95
assertMethod · 0.95
matchDomainMethod · 0.95
pollMatchDomainMethod · 0.95
assertRawMethod · 0.95
toMatchFileSnapshotImplFunction · 0.80
onBeforeTryTaskMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected