2022-03-16 12:34:27 +00:00
|
|
|
import { describe, expect, it } from 'vitest'
|
2022-11-10 14:55:47 +00:00
|
|
|
import { $fetch, isDev } from '@nuxt/test-utils'
|
2022-03-16 12:34:27 +00:00
|
|
|
|
2022-11-10 14:55:47 +00:00
|
|
|
describe('example', () => {
|
2022-03-16 12:34:27 +00:00
|
|
|
it('Renders Hello Nuxt', async () => {
|
|
|
|
expect(await $fetch('/')).toMatch('Hello Nuxt!')
|
|
|
|
})
|
2022-03-17 21:31:06 +00:00
|
|
|
|
|
|
|
if (isDev()) {
|
|
|
|
it('[dev] ensure vite client script is added', async () => {
|
|
|
|
expect(await $fetch('/')).toMatch('/_nuxt/@vite/client"')
|
|
|
|
})
|
|
|
|
}
|
2022-03-16 12:34:27 +00:00
|
|
|
})
|