( nameOrOptions: string | Omit<Deno.TestDefinition, "fn">, fn: () => void | Promise<void>, )
| 189 | * test function. |
| 190 | */ |
| 191 | export function integrationTest( |
| 192 | nameOrOptions: string | Omit<Deno.TestDefinition, "fn">, |
| 193 | fn: () => void | Promise<void>, |
| 194 | ): void { |
| 195 | const options = typeof nameOrOptions === "string" |
| 196 | ? { name: nameOrOptions } |
| 197 | : nameOrOptions; |
| 198 | Deno.test({ |
| 199 | ...options, |
| 200 | fn, |
| 201 | sanitizeOps: false, |
| 202 | sanitizeResources: false, |
| 203 | }); |
| 204 | } |
| 205 | |
| 206 | export async function writeFiles(dir: string, files: Record<string, string>) { |
| 207 | const entries = Object.entries(files); |
no outgoing calls
no test coverage detected