(filepath: string)
| 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 }) |