| 1 | import type { ParsedStack } from '@vitest/utils' |
| 2 | |
| 3 | export interface SnapshotEnvironment { |
| 4 | getVersion: () => string |
| 5 | getHeader: () => string |
| 6 | resolvePath: (filepath: string) => Promise<string> |
| 7 | resolveRawPath: (testPath: string, rawPath: string) => Promise<string> |
| 8 | saveSnapshotFile: (filepath: string, snapshot: string) => Promise<void> |
| 9 | readSnapshotFile: (filepath: string) => Promise<string | null> |
| 10 | removeSnapshotFile: (filepath: string) => Promise<void> |
| 11 | processStackTrace?: (stack: ParsedStack) => ParsedStack |
| 12 | } |
| 13 | |
| 14 | export interface SnapshotEnvironmentOptions { |
| 15 | snapshotsDirName?: string |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…