diff options
author | 2021-03-26 13:14:32 -0600 | |
---|---|---|
committer | 2021-03-26 13:14:32 -0600 | |
commit | 3ddd3594f0afa613c75e7f9cf5e373a6d0269d18 (patch) | |
tree | 81dff17635f255a3df72e72748b032359986d72a /test/snowpack-integration.test.js | |
parent | 11637df5791863cde061c52d5c2dc1654cc3f30f (diff) | |
download | astro-3ddd3594f0afa613c75e7f9cf5e373a6d0269d18.tar.gz astro-3ddd3594f0afa613c75e7f9cf5e373a6d0269d18.tar.zst astro-3ddd3594f0afa613c75e7f9cf5e373a6d0269d18.zip |
Absorb Snowpack config inside Astro (#32)
* Absorb Snowpack config inside Astro
* Add basic README
* Format tests
* Update esbuild
* Format tests
Diffstat (limited to 'test/snowpack-integration.test.js')
-rw-r--r-- | test/snowpack-integration.test.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/snowpack-integration.test.js b/test/snowpack-integration.test.js index e14d94a73..097550d39 100644 --- a/test/snowpack-integration.test.js +++ b/test/snowpack-integration.test.js @@ -13,7 +13,7 @@ const SnowpackDev = suite('snowpack.dev'); let runtime, cwd, setupError; SnowpackDev.before(async () => { -// Bug: Snowpack config is still loaded relative to the current working directory. + // Bug: Snowpack config is still loaded relative to the current working directory. cwd = process.cwd(); process.chdir(new URL('../examples/snowpack/', import.meta.url).pathname); @@ -26,7 +26,7 @@ SnowpackDev.before(async () => { try { runtime = await createRuntime(astroConfig, logging); - } catch(err) { + } catch (err) { console.error(err); setupError = err; } @@ -34,7 +34,7 @@ SnowpackDev.before(async () => { SnowpackDev.after(async () => { process.chdir(cwd); - await runtime && runtime.shutdown(); + (await runtime) && runtime.shutdown(); }); async function* allPageFiles(root) { @@ -72,7 +72,7 @@ SnowpackDev('Can load every page', async () => { } const result = await runtime.load(pathname); if (result.statusCode === 500) { - failed.push({...result, pathname}); + failed.push({ ...result, pathname }); continue; } assert.equal(result.statusCode, 200, `Loading ${pathname}`); |