File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -161,6 +161,10 @@ export default defineVitestConfig({
161
161
162
162
``` ts twoslash
163
163
import { it , expect } from ' vitest'
164
+ import type { Component } from ' vue'
165
+ declare module ' #components' {
166
+ export const SomeComponent: Component
167
+ }
164
168
// ---cut---
165
169
// tests/components/SomeComponents.nuxt.spec.ts
166
170
import { mountSuspended } from ' @nuxt/test-utils/runtime'
@@ -207,6 +211,10 @@ Examples:
207
211
208
212
``` ts twoslash
209
213
import { it , expect } from ' vitest'
214
+ import type { Component } from ' vue'
215
+ declare module ' #components' {
216
+ export const SomeComponent: Component
217
+ }
210
218
// ---cut---
211
219
// tests/components/SomeComponents.nuxt.spec.ts
212
220
import { renderSuspended } from ' @nuxt/test-utils/runtime'
You can’t perform that action at this time.
0 commit comments