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
It works with only Jest, but my project also use Enzyme to do some e2e test. With Enzyme it throw that error. I find some anwser in Enzyme such as enzyme #1437. But I'm sure there is no another enzyme in my project.
$ npm ls enzyme
root
└── enzyme@3.11.0
🔥 Exception or Error
● Test suite failed to run
Enzyme Internal Error: configured enzyme adapter did not inherit from the EnzymeAdapter base class
2 | import Adapter from 'enzyme-adapter-react-16'
3 |
> 4 | Enzyme.configure({
| ^
5 | adapter: new Adapter(),
6 | })
7 |
at validateAdapter (node_modules/enzyme/src/validateAdapter.js:43:11)
at Object.merge [as configure] (node_modules/enzyme/src/configuration.js:11:5)
at Object. (setupTests.ts:4:8)
at Array.forEach ()
🌍 Your Environment
Operating System:
Darwin 18.7.0 Darwin Kernel Version 18.7.0: Tue Aug 20 16:57:14 PDT 2019; root:xnu-4903.271.2~2/RELEASE_X86_64 x86_64
🐞 bug report
Affected Rule
The issue is caused by the rule:I referred to the official example jest.
Description
It works with only
Jest
, but my project also useEnzyme
to do some e2e test. WithEnzyme
it throw that error. I find some anwser inEnzyme
such as enzyme #1437. But I'm sure there is no another enzyme in my project.🔥 Exception or Error
🌍 Your Environment
Operating System:
Output of
bazel version
:Rules_nodejs version:
(Please check that you have matching versions between WORKSPACE file and
@bazel/*
npm packages.)The text was updated successfully, but these errors were encountered: