({ project }, path)
| 33 | export const removeFile: BrowserCommand< |
| 34 | Parameters<BrowserCommands['removeFile']> |
| 35 | > = async ({ project }, path) => { |
| 36 | assertBrowserApiWrite(project, path) |
| 37 | const filepath = resolve(project.config.root, path) |
| 38 | assertBrowserFileAccess(project, filepath) |
| 39 | await fsp.rm(filepath) |
| 40 | } |
| 41 | |
| 42 | export const _fileInfo: BrowserCommand<[path: string, encoding: BufferEncoding]> = async ({ project }, path, encoding) => { |
| 43 | const filepath = resolve(project.config.root, path) |
no test coverage detected