MCPcopy
hub / github.com/vitest-dev/vitest / resolvePath

Method resolvePath

packages/snapshot/src/env/node.ts:20–25  ·  view source on GitHub ↗
(filepath: string)

Source from the content-addressed store, hash-verified

18 }
19
20 async resolvePath(filepath: string): Promise<string> {
21 return join(
22 join(dirname(filepath), this.options.snapshotsDirName ?? '__snapshots__'),
23 `${basename(filepath)}.snap`,
24 )
25 }
26
27 async prepareDirectory(dirPath: string): Promise<void> {
28 await fs.mkdir(dirPath, { recursive: true })

Callers 1

createMethod · 0.45

Calls 1

joinFunction · 0.50

Tested by

no test coverage detected