TypeError: scope.enabled is not a function when trying to test a component #11948
-
We recently migrated to v11, alongside introducing unit testing in our application. We're currently using Jest 28 with Post-migration however, the test of a component that contains a
The issue is coming from this line of the
The I'm very new to jest and am struggling to set up a mock properly for this. Can anyone help, please? I looked through the carbon docs and there is no mention of extra hoops to jump through when creating tests. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Worked it out:
May save some time for someone else, facing the same issue |
Beta Was this translation helpful? Give feedback.
Worked it out:
May save some time for someone else, facing the same issue