-
-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Simplify test - Fix bug in makeApolloClient (pageProps was missing) - Add comment about having to instantiate a new Apollo Client per request - Remove _error.page.jsx - Use static page title - Remove unnecessary package.json scripts (and the packages for them)
- Loading branch information
1 parent
0243908
commit 12b1bdb
Showing
9 changed files
with
20 additions
and
600 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const { fetchHtml, run } = require("../../tests/setup"); | ||
|
||
run("npm run start"); | ||
|
||
test("page content is rendered to HTML", async () => { | ||
const html = await fetchHtml("/"); | ||
expect(html).toContain("<h1>Welcome to <code>vite-plugin-ssr</code></h1>"); | ||
expect(html).toContain("<li>Angola</li><li>Antarctica</li><li>Argentina</li><li>American Samoa</li>"); | ||
expect(html).toContain("pageProps: (function(a){return {initialApolloState:{ROOT_QUERY:"); | ||
}); |
Oops, something went wrong.