Skip to content

Commit

Permalink
test: Add test for fs fetch during prerender
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian committed Nov 21, 2023
1 parent 22887d4 commit 972342d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/build.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ test("builds demo successfully", async () => {
assert.match(outputHtml, /<title>Prerendered Preact App<\/title>/);
assert.match(outputHtml, /<meta name="description" content="This is a prerendered Preact app">/);

// Local Fetch
assert.match(outputHtml, /Local fetch works/);

// `additionalPrerenderRoutes` config option
assert.doesNotThrow(async () => await fs.access(dir("demo/dist/404/index.html")));
});

0 comments on commit 972342d

Please sign in to comment.