Skip to content

TS error with findComponent(Foo).vm.$emit) #144

@lmiller1990

Description

@lmiller1990

This code: await wrapper.findComponent(Hello).vm.$emit('greet')

(property) $emit: unknown
This expression is not callable.
  Type '{}' has no call signatures.ts(2349)

Shim:

declare module '*.vue' {
  export default any
}

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions