Closed mildrenben closed 6 years ago
Can you confirm this error does not originate from chai-as-promised
as suggested in the error message? Feel free to re-open if this is chai-enzyme's fault.
@ayrton Fixed the chai-as-promised issue. Now it definitely appears to be chai-enzyme
.
PhantomJS 2.1.1 (Mac OS X 0.0.0) ERROR
Error: Cannot find module "enzyme/build/react-compat"
at webpack:///~/chai-enzyme/build/ReactTestWrapper.js:9:0 <- test-bundler.js:91728
Is this just incorrect versions of enzyme
? I'm using 3.2.0
@mildrenben you have to use the beta version of chai-enzyme if you're using enzyme > 3. See https://github.com/producthunt/chai-enzyme/issues/199 for more information.
I recently upgraded to React 16 and added the PropTypes package, and now my tests won't run at all with the following error message:
These are the project dependencies:
There is another error further up, so it's possible this is the cause:
This is the
karma.config.js
:Anyone have any ideas as to why this isn't working now?