-
Notifications
You must be signed in to change notification settings - Fork 278
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
This change
#2327
broke my test case.
To Reproduce
Pull this PR
carbon-design-system/carbon-components-vue#1662
Run
yarn test src/components/CvAccordion/__tests__/CvAccordion.spec.js
The change in the PR #2327 removes the visibility of componentRef in the vm. It maybe related to the component using defineExpose({ state }); which is not used elsewhere in our components.
Reverting the change on #2327 fixes the test case.
Expected behavior
const acc = wrapper.findComponent(`.${carbonPrefix}--accordion`);
expect(Boolean(acc.vm.componentRef)).toBe(true);
Related information:
Additional context
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working