mirror of
https://github.com/soconnor0919/beenpad.git
synced 2026-02-05 00:06:40 -05:00
15 lines
478 B
JavaScript
15 lines
478 B
JavaScript
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 };
|