docs: add import statement for mountSuspended (#25783)

This commit is contained in:
yoshihirokurosaki 2024-02-14 19:04:28 +09:00 committed by GitHub
parent 0c694eee86
commit 4c735faac3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -155,6 +155,8 @@ export default defineVitestConfig({
```ts
// tests/components/SomeComponents.nuxt.spec.ts
import { mountSuspended } from '@nuxt/test-utils/runtime'
it('can mount some component', async () => {
const component = await mountSuspended(SomeComponent)
expect(component.text()).toMatchInlineSnapshot(