Files
nuchat/ui/app/pages/index.spec.ts
Fergus Molloy 8c12ca0024
All checks were successful
Backend Actions / check (push) Successful in 13s
Backend Actions / build (push) Successful in 28s
Backend Actions / test (push) Successful in 37s
add ui testing
2025-07-25 17:28:41 +01:00

16 lines
438 B
TypeScript

// @noErrors
import { it, expect } from 'vitest'
// ---cut---
// tests/components/SomeComponents.nuxt.spec.ts
import { mountSuspended } from '@nuxt/test-utils/runtime'
import Index from '~/pages/index.vue'
// tests/App.nuxt.spec.ts
it('can also mount an app', async () => {
const component = await mountSuspended(Index, { route: '/test' })
expect(component.html()).toMatchInlineSnapshot(`
"<h1>Hello World</h1>"
`)
})