* feat: add nuxt module * chore: bundle module * chore: update package, readme * docs: update nuxt installation with new module * docs: remove Ui prefix to prevent confusion * chore: cleanup
16 lines
459 B
TypeScript
16 lines
459 B
TypeScript
import { fileURLToPath } from 'node:url'
|
|
import { describe, expect, it } from 'vitest'
|
|
import { $fetch, setup } from '@nuxt/test-utils'
|
|
|
|
describe('ssr', async () => {
|
|
await setup({
|
|
rootDir: fileURLToPath(new URL('./fixtures/basic', import.meta.url)),
|
|
})
|
|
|
|
it('renders the index page', async () => {
|
|
// Get response to a server-rendered page with `$fetch`.
|
|
const html = await $fetch('/')
|
|
expect(html).toContain('<div>basic</div>')
|
|
})
|
|
})
|