(path: string, source: string)
| 1 | import { SELF } from "cloudflare:test"; |
| 2 | |
| 3 | async function write(path: string, source: string) { |
| 4 | const response = await SELF.fetch(`https://example.test/write?path=${encodeURIComponent(path)}`, { |
| 5 | method: "POST", |
| 6 | body: source, |
| 7 | }); |
| 8 | expect(response.status).toBe(204); |
| 9 | } |
| 10 | |
| 11 | async function symlink(target: string, path: string) { |
| 12 | const response = await SELF.fetch( |
no test coverage detected