mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35: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
|
||||
// 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(
|
||||
|
Loading…
Reference in New Issue
Block a user