]>
Commit | Line | Data |
---|---|---|
1ec4835d C |
1 | import { mkdirSync } from 'fs' |
2 | import { join } from 'path' | |
3 | ||
4 | const SCREENSHOTS_DIRECTORY = 'screenshots' | |
5 | ||
6 | function createScreenshotsDirectory () { | |
7 | mkdirSync(SCREENSHOTS_DIRECTORY, { recursive: true }) | |
8 | } | |
9 | ||
10 | function getScreenshotPath (filename: string) { | |
11 | return join(SCREENSHOTS_DIRECTORY, filename) | |
12 | } | |
13 | ||
14 | export { | |
15 | createScreenshotsDirectory, | |
16 | getScreenshotPath | |
17 | } |