Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/danielroe/test-utils-test.
Something went wrong. Try again.
test-utils-test my.test.ts
1234567891011121314151617181920import { fileURLToPath } from 'url'import { setup, $fetch } from '@nuxt/test-utils'import { describe, expect, it } from 'vitest'
const playground = fileURLToPath(new URL('./playground', import.meta.url))
await setup({ rootDir: playground, server: true})
describe('Sample test suite', () => { it('Sanity image builder works', async () => { const html = await $fetch('/') expect(html).toContain( 'Nuxt module playground' ) }, 50000)})