diff options
author | 2023-09-22 10:58:00 -0400 | |
---|---|---|
committer | 2023-09-22 16:58:00 +0200 | |
commit | faeead42325f378f9edac4e081eb7d6d50905136 (patch) | |
tree | 897800f1faec11405df814df6af945da44dce0a8 /packages/integrations/cloudflare/test/basics.test.js | |
parent | b1310e6f13c029e880145cc08a7f31129412a06c (diff) | |
download | astro-faeead42325f378f9edac4e081eb7d6d50905136.tar.gz astro-faeead42325f378f9edac4e081eb7d6d50905136.tar.zst astro-faeead42325f378f9edac4e081eb7d6d50905136.zip |
feat(@astrojs/cloudflare): Add support for wasm module imports (#8542)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Diffstat (limited to 'packages/integrations/cloudflare/test/basics.test.js')
-rw-r--r-- | packages/integrations/cloudflare/test/basics.test.js | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/packages/integrations/cloudflare/test/basics.test.js b/packages/integrations/cloudflare/test/basics.test.js index 726a19fc6..eb4509da1 100644 --- a/packages/integrations/cloudflare/test/basics.test.js +++ b/packages/integrations/cloudflare/test/basics.test.js @@ -14,20 +14,22 @@ describe('Basic app', () => { }); await fixture.build(); - cli = await runCLI('./fixtures/basics/', { silent: true, port: 8789 }); - await cli.ready.catch((e) => { - console.log(e); - // if fail to start, skip for now as it's very flaky - this.skip(); + cli = await runCLI('./fixtures/basics/', { + silent: true, + onTimeout: (ex) => { + console.log(ex); + // if fail to start, skip for now as it's very flaky + this.skip(); + }, }); }); after(async () => { - await cli.stop(); + await cli?.stop(); }); it('can render', async () => { - let res = await fetch(`http://127.0.0.1:8789/`); + let res = await fetch(`http://127.0.0.1:${cli.port}/`); expect(res.status).to.equal(200); let html = await res.text(); let $ = cheerio.load(html); |