Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
15 lines
478 B
Plaintext
15 lines
478 B
Plaintext
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 };
|