Sha256: d3b77e371462b74a05995f4a61945ef7af33b18f3b8c7bd35fb0915f5a9567c6
Contents?: true
Size: 593 Bytes
Versions: 26
Compression:
Stored size: 593 Bytes
Contents
import { NodeSnapshotEnvironment } from '@vitest/snapshot/environment'; import 'pathe'; import '@vitest/runner/utils'; import '@vitest/utils'; import { g as getWorkerState } from './utils.Ck2hJTRs.js'; import './env.CmHVDJnw.js'; import 'std-env'; class VitestNodeSnapshotEnvironment extends NodeSnapshotEnvironment { getHeader() { return `// Vitest Snapshot v${this.getVersion()}, https://vitest.dev/guide/snapshot.html`; } resolvePath(filepath) { const rpc = getWorkerState().rpc; return rpc.resolveSnapshotPath(filepath); } } export { VitestNodeSnapshotEnvironment };
Version data entries
26 entries across 26 versions & 1 rubygems