summaryrefslogtreecommitdiff
path: root/packages/integrations/deno/test/helpers.js
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@skypack.dev> 2022-04-15 17:01:33 -0400
committerGravatar GitHub <noreply@github.com> 2022-04-15 17:01:33 -0400
commite5383cd3576f858bf65f6d460de397c4f2dae208 (patch)
tree16a21fae7bcf521cf1a11226eb0bf5e8a1ec52d8 /packages/integrations/deno/test/helpers.js
parentb0ba22c5ffab6575706ae904d0ad8cadc3f48d43 (diff)
downloadastro-e5383cd3576f858bf65f6d460de397c4f2dae208.tar.gz
astro-e5383cd3576f858bf65f6d460de397c4f2dae208.tar.zst
astro-e5383cd3576f858bf65f6d460de397c4f2dae208.zip
Handle static file serving in Deno adapter's start command (#3121)
* Handle static file serving in Deno adapter's start command * Adds a changeset * Ignore a .ts imort
Diffstat (limited to 'packages/integrations/deno/test/helpers.js')
-rw-r--r--packages/integrations/deno/test/helpers.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/integrations/deno/test/helpers.js b/packages/integrations/deno/test/helpers.js
index bc2bc0622..210877f1d 100644
--- a/packages/integrations/deno/test/helpers.js
+++ b/packages/integrations/deno/test/helpers.js
@@ -14,6 +14,9 @@ export async function runBuildAndStartApp(fixturePath, cb) {
const url = new URL(fixturePath, dir);
const close = await runBuild(fixturePath);
const mod = await import(new URL('./dist/server/entry.mjs', url));
+ if(!mod.running()) {
+ mod.start();
+ }
await cb();
await mod.stop();
await close();