bit icon indicating copy to clipboard operation
bit copied to clipboard

In default React env test doesn't work

Open KelvinOm opened this issue 2 years ago • 1 comments

Describe the bug

When using the default React environment for component, I can't run tests because there is no @testing-library/react.

Steps to Reproduce

  1. bit create react some-cmp
  2. bit install && bit compile
  3. bit test

Expected Behavior

Tests run successfully.

Screenshots, exceptions and logs

2022-07-04!UNITO-UNDERSCORE!10-32-08 2022-07-04!UNITO-UNDERSCORE!10-31-54

Specifications

  • Bit version: 0.0.780
  • Node version: v16.15.1
  • Platform: MacOs

for harmony workspace

  • relevant env teambit.react/react

KelvinOm avatar Jul 04 '22 05:07 KelvinOm

please run bit install @testing-library/react@^12 --type peer We are working to solve it

GiladShoham avatar Jul 04 '22 09:07 GiladShoham