diff options
author | 2023-08-15 17:13:43 +0000 | |
---|---|---|
committer | 2023-08-15 17:13:43 +0000 | |
commit | a37b2242d0e914763d8c501fee2150f4e41a9f67 (patch) | |
tree | 342f61e5908b97a078ec90a473ff395d0876a344 /packages/integrations/cloudflare/test/test-utils.js | |
parent | 74df833708ddb4eb3dc881cae9100cd615aa6add (diff) | |
download | astro-a37b2242d0e914763d8c501fee2150f4e41a9f67.tar.gz astro-a37b2242d0e914763d8c501fee2150f4e41a9f67.tar.zst astro-a37b2242d0e914763d8c501fee2150f4e41a9f67.zip |
[ci] format
Diffstat (limited to '')
-rw-r--r-- | packages/integrations/cloudflare/test/test-utils.js | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/packages/integrations/cloudflare/test/test-utils.js b/packages/integrations/cloudflare/test/test-utils.js index 6a657a0fc..61067c538 100644 --- a/packages/integrations/cloudflare/test/test-utils.js +++ b/packages/integrations/cloudflare/test/test-utils.js @@ -33,7 +33,17 @@ export async function runCLI(basePath, { silent, port }) { } const script = fileURLToPath(new URL(`${basePath}/dist/_worker.js`, import.meta.url)); - const p = spawn('node', [wranglerPath, 'dev', script, '--port', port, '--log-level', 'info', '--persist-to', `${basePath}/.wrangler/state`]); + const p = spawn('node', [ + wranglerPath, + 'dev', + script, + '--port', + port, + '--log-level', + 'info', + '--persist-to', + `${basePath}/.wrangler/state`, + ]); p.stderr.setEncoding('utf-8'); p.stdout.setEncoding('utf-8'); @@ -41,13 +51,10 @@ export async function runCLI(basePath, { silent, port }) { const timeout = 10_000; const ready = new Promise(async (resolve, reject) => { - const failed = setTimeout( - () => { - p.kill(); - reject(new Error(`Timed out starting the wrangler CLI`)); - }, - timeout - ); + const failed = setTimeout(() => { + p.kill(); + reject(new Error(`Timed out starting the wrangler CLI`)); + }, timeout); (async function () { for (const msg of p.stderr) { |