summaryrefslogtreecommitdiff
path: root/test/snowpack-integration.test.js
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@matthewphillips.info> 2021-03-23 15:20:03 -0400
committerGravatar GitHub <noreply@github.com> 2021-03-23 15:20:03 -0400
commited85702581cad3f00729f920036560da439e1189 (patch)
tree96da9ef8e21d2dfaebc3c1c10120c0ffc6da802a /test/snowpack-integration.test.js
parente0353d50e77039bdf73d178a1d09dcd1aa0f59d0 (diff)
downloadastro-ed85702581cad3f00729f920036560da439e1189.tar.gz
astro-ed85702581cad3f00729f920036560da439e1189.tar.zst
astro-ed85702581cad3f00729f920036560da439e1189.zip
Allow HMX components in markdown (#19)
* Allow HMX components in markdown This adds support for HMX components in markdown. The mechanism for importing is via frontmatter. We could do this differently (setup script maybe?) but since this was the easiest to implement I thought it was a good first-pass option. * Remove node-fetch from snowpack config * Assert that the runtime is created successfully * Add back in the micromark extension for encoding entities * Encode both codeTextData and codeFlowValue * Install snowpack app's deps
Diffstat (limited to 'test/snowpack-integration.test.js')
-rw-r--r--test/snowpack-integration.test.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/snowpack-integration.test.js b/test/snowpack-integration.test.js
index 8547ee7cd..033f5587d 100644
--- a/test/snowpack-integration.test.js
+++ b/test/snowpack-integration.test.js
@@ -10,7 +10,7 @@ const { readdir, stat } = fsPromises;
const SnowpackDev = suite('snowpack.dev');
-let runtime, cwd;
+let runtime, cwd, setupError;
SnowpackDev.before(async () => {
// Bug: Snowpack config is still loaded relative to the current working directory.
@@ -28,7 +28,7 @@ SnowpackDev.before(async () => {
runtime = await createRuntime(astroConfig, logging);
} catch(err) {
console.error(err);
- throw err;
+ setupError = err;
}
});
@@ -58,6 +58,10 @@ async function* allPages(root) {
}
}
+SnowpackDev('No error creating the runtime', () => {
+ assert.equal(setupError, undefined);
+});
+
SnowpackDev('Can load every page', async () => {
const failed = [];