You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
// finds the instance of CvAccordion.vueconstacc=wrapper.findComponent(`.${carbonPrefix}--accordion`);// But this expects `acc.vm` to be the parent componentexpect(acc.vm.componentRef.state).toEqual(expectedState);
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
Related information:
Additional context
The text was updated successfully, but these errors were encountered: