diff options
author | 2021-03-21 20:34:11 -0700 | |
---|---|---|
committer | 2021-03-21 20:34:11 -0700 | |
commit | 6e4367fd490f9c1748288ac10f2bf27632ae7a03 (patch) | |
tree | f9c74768a506ed506e9e8e1e032c7688db4b5017 /test/snowpack-integration.test.js | |
parent | e03afbd980f4e0226136b3324c6f166ec8a18a8e (diff) | |
download | astro-6e4367fd490f9c1748288ac10f2bf27632ae7a03.tar.gz astro-6e4367fd490f9c1748288ac10f2bf27632ae7a03.tar.zst astro-6e4367fd490f9c1748288ac10f2bf27632ae7a03.zip |
another pass at head/body handling in pages
Diffstat (limited to 'test/snowpack-integration.test.js')
-rw-r--r-- | test/snowpack-integration.test.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/snowpack-integration.test.js b/test/snowpack-integration.test.js index da88ea8d7..e420b043a 100644 --- a/test/snowpack-integration.test.js +++ b/test/snowpack-integration.test.js @@ -7,6 +7,9 @@ import { doc } from './test-utils.js'; const { readdir, stat } = fsPromises; +// Bug: Snowpack config is still loaded relative to the current working directory. +process.chdir(new URL('../examples/snowpack/', import.meta.url).pathname); + const SnowpackDev = suite('snowpack.dev'); let runtime; @@ -67,8 +70,10 @@ SnowpackDev('Can load every page', async () => { assert.equal(result.statusCode, 200, `Loading ${pathname}`); } - console.error(failed); - assert.equal(failed.length, 1, 'Failed pages (1 expected)'); + if (failed.length > 0) { + console.error(failed); + } + assert.equal(failed.length, 0, 'Failed pages'); }); SnowpackDev.run(); |