(target, contents)
| 16 | } |
| 17 | |
| 18 | async function writeFile(target, contents) { |
| 19 | await fs.mkdir(path.dirname(target), { recursive: true }); |
| 20 | await fs.writeFile(target, contents, "utf8"); |
| 21 | } |
| 22 | |
| 23 | async function waitUntil(predicate, timeout = 2000, interval = 50) { |
| 24 | const start = Date.now(); |