diff --git a/docs/1.getting-started/11.testing.md b/docs/1.getting-started/11.testing.md index 0cdf1d8b82..a8c909fb24 100644 --- a/docs/1.getting-started/11.testing.md +++ b/docs/1.getting-started/11.testing.md @@ -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(