Skip to content

Can't the defineexpose event be tested ? #1936

@yangliguo7

Description

@yangliguo7

I use vue-composition-api in my program
like
setup(){ const fn = ()=>{} defineExpose({ fn }); }
Can't I test this function in my test file?

I check wrapper.vm,its not on vm。

So is there a way to test this function?

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