-
Notifications
You must be signed in to change notification settings - Fork 270
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
defineExpose
can works fine in the browser, but does not work in the test case.
Got error like ⬇️
To Reproduce
To reproduce this problem I created a demo and put it in the CodeSandbox
.
The link is here ⬇️
https://codesandbox.io/p/github/jason-chang/test-utils-bug/main
Components in src/components/Case.vue
For test cases, see src/components/tests/case.test.tsx
The browse test code is in src/App.vue
Expected behavior
You want defineExpose exported projects to be properly accessible in both browser and test case.
Related information:
Additional context
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working