aboutsummaryrefslogtreecommitdiffstats
path: root/vanilla/node_modules/vitest/dist/chunks/node.Ce0vMQM7.js
blob: 79dbbe2cafe595f45c98d94590aa65f2d945e27e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { NodeSnapshotEnvironment } from '@vitest/snapshot/environment';
import { g as getWorkerState } from './utils.DvEY5TfP.js';
import '@vitest/utils/timers';

class VitestNodeSnapshotEnvironment extends NodeSnapshotEnvironment {
	getHeader() {
		return `// Vitest Snapshot v${this.getVersion()}, https://vitest.dev/guide/snapshot.html`;
	}
	resolvePath(filepath) {
		return getWorkerState().rpc.resolveSnapshotPath(filepath);
	}
}

export { VitestNodeSnapshotEnvironment };