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
Method “simulate” is only meant to be run on a single node. 0 found instead.
98 | expect(wrapper).toBeOnStep('ReceivingCallStep');
99 |
> 100 | wrapper.find('AcceptCallButton').simulate('click');
My understanding is that Babel Jest should be making the transformation (before being instrumented?) specified in my configuration:
This issue was closed because it has been stalled for 7 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
🐛 Bug Report
When running
--coverage
, Babel transforms on components'displayName
s aren't found, leading to failing tests.I'm using this Babel plugin to change all display names of components created with
react-fela
: https://github.com/louisscruz/babel-plugin-transform-react-fela-display-name.Example test failure:
My understanding is that Babel Jest should be making the transformation (before being instrumented?) specified in my configuration:
And in my
jestConfig.json
:But that doesn't seem to be the case.
To Reproduce
Steps to reproduce the behavior:
displayName
to yourbabel-jest
configuration.displayName
injection to your code.displayName
.jest --coverage
and watch your test fail.Expected behavior
The test runs during coverage collection should use the
displayName
set by the Babel plugin.Run
npx envinfo --preset jest
Paste the results here:
The text was updated successfully, but these errors were encountered: