(ws: Workspace, path: string, bytes: Uint8Array)
| 90 | // writeFile requires the parent directory to exist; create it then |
| 91 | // write the bytes. |
| 92 | async function writeAt(ws: Workspace, path: string, bytes: Uint8Array): Promise<void> { |
| 93 | const dir = path.slice(0, path.lastIndexOf("/")); |
| 94 | if (dir.length > 0) await ws.fs.mkdir(dir, { recursive: true }); |
| 95 | await ws.fs.writeFile(path, bytes); |
| 96 | } |
| 97 | |
| 98 | const fixedClock = () => Date.UTC(2026, 0, 2, 3, 4, 5); |
| 99 |
no test coverage detected