mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-01 18:07:22 +00:00
452a7730e0
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
15 lines
367 B
TypeScript
15 lines
367 B
TypeScript
import { fileURLToPath } from 'url'
|
|
import { describe, expect, it } from 'vitest'
|
|
import { setup, $fetch } from '@nuxt/test-utils'
|
|
|
|
describe('example', async () => {
|
|
await setup({
|
|
rootDir: fileURLToPath(new URL('..', import.meta.url)),
|
|
server: true
|
|
})
|
|
|
|
it('Renders Hello Nuxt', async () => {
|
|
expect(await $fetch('/')).toMatch('Hello Nuxt!')
|
|
})
|
|
})
|