We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea91f8b commit 3cbf74cCopy full SHA for 3cbf74c
test/basic.test.ts
@@ -0,0 +1,15 @@
1
+import { fileURLToPath } from 'node:url'
2
+import { describe, it, expect } from 'vitest'
3
+import { setup, $fetch } from '@nuxt/test-utils/e2e'
4
+
5
+describe('ssr', async () => {
6
+ await setup({
7
+ rootDir: fileURLToPath(new URL('../playground', import.meta.url)),
8
+ })
9
10
+ it('renders the index page', async () => {
11
+ // Get response to a server-rendered page with `$fetch`.
12
+ const html = await $fetch('/')
13
+ expect(html).toContain('<p>Click/tap me</p>')
14
15
+})
0 commit comments