diff options
author | 2021-03-26 13:14:32 -0600 | |
---|---|---|
committer | 2021-03-26 13:14:32 -0600 | |
commit | 3ddd3594f0afa613c75e7f9cf5e373a6d0269d18 (patch) | |
tree | 81dff17635f255a3df72e72748b032359986d72a /test/react-component.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/react-component.test.js')
-rw-r--r-- | test/react-component.test.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/react-component.test.js b/test/react-component.test.js index df57fa7c6..85892a623 100644 --- a/test/react-component.test.js +++ b/test/react-component.test.js @@ -13,19 +13,19 @@ React.before(async () => { const logging = { level: 'error', - dest: process.stderr + dest: process.stderr, }; try { runtime = await createRuntime(astroConfig, logging); - } catch(err) { + } catch (err) { console.error(err); setupError = err; } }); React.after(async () => { - await runtime.shutdown(); + (await runtime) && runtime.shutdown(); }); React('No error creating the runtime', () => { @@ -41,4 +41,4 @@ React('Can load page', async () => { assert.equal($('h2').text(), 'Hello world!'); }); -React.run();
\ No newline at end of file +React.run(); |