q9
This commit is contained in:
15
node_modules/vitest/dist/chunks/node.AKq966Jp.js
generated
vendored
Normal file
15
node_modules/vitest/dist/chunks/node.AKq966Jp.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import { NodeSnapshotEnvironment } from '@vitest/snapshot/environment';
|
||||
import { g as getWorkerState } from './utils.C8RiOc4B.js';
|
||||
import '@vitest/utils';
|
||||
|
||||
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 };
|
||||
Reference in New Issue
Block a user