File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 11// Minimum TypeScript Version: 4.0
22/* eslint-disable @typescript-eslint/no-explicit-any */
33
4- import { EmitsOptions } from 'vue'
54import { MountingOptions } from '@vue/test-utils'
65import { queries , EventType , BoundFunctions } from '@testing-library/dom'
76// eslint-disable-next-line import/no-extraneous-dependencies
@@ -22,7 +21,7 @@ export interface RenderResult extends BoundFunctions<typeof queries> {
2221 debug : Debug
2322 unmount ( ) : void
2423 html ( ) : string
25- emitted ( ) : EmitsOptions
24+ emitted < T = unknown > ( ) : Record < string , T [ ] >
2625 rerender ( props : object ) : Promise < void >
2726}
2827
Original file line number Diff line number Diff line change @@ -84,6 +84,11 @@ export function testOptions() {
8484 } )
8585}
8686
87+ export function testEmitted ( ) {
88+ const { emitted} = render ( SomeComponent )
89+ emitted ( ) . foo // $ExpectType unknown[]
90+ }
91+
8792/*
8893eslint
8994 testing-library/prefer-explicit-assert: "off",
You can’t perform that action at this time.
0 commit comments