mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-16 13:48:13 +00:00
docs: add import statement for mountSuspended (#25783)
This commit is contained in:
parent
0c694eee86
commit
4c735faac3
@ -155,6 +155,8 @@ export default defineVitestConfig({
|
|||||||
|
|
||||||
```ts
|
```ts
|
||||||
// tests/components/SomeComponents.nuxt.spec.ts
|
// tests/components/SomeComponents.nuxt.spec.ts
|
||||||
|
import { mountSuspended } from '@nuxt/test-utils/runtime'
|
||||||
|
|
||||||
it('can mount some component', async () => {
|
it('can mount some component', async () => {
|
||||||
const component = await mountSuspended(SomeComponent)
|
const component = await mountSuspended(SomeComponent)
|
||||||
expect(component.text()).toMatchInlineSnapshot(
|
expect(component.text()).toMatchInlineSnapshot(
|
||||||
|
Loading…
Reference in New Issue
Block a user