diff options
Diffstat (limited to 'test/react-component.test.js')
-rw-r--r-- | test/react-component.test.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/react-component.test.js b/test/react-component.test.js index 0b6273922..d901c62b0 100644 --- a/test/react-component.test.js +++ b/test/react-component.test.js @@ -6,7 +6,7 @@ import { doc } from './test-utils.js'; const React = suite('React Components'); -let runtime; +let runtime, setupError; React.before(async () => { const astroConfig = await loadConfig(new URL('./fixtures/react-component', import.meta.url).pathname); @@ -20,7 +20,7 @@ React.before(async () => { runtime = await createRuntime(astroConfig, logging); } catch(err) { console.error(err); - throw err; + setupError = err; } }); @@ -28,6 +28,10 @@ React.after(async () => { await runtime.shutdown(); }); +React('No error creating the runtime', () => { + assert.equal(setupError, undefined); +}); + React('Can load hmx page', async () => { const result = await runtime.load('/'); |