viclafouch / mui-color-input

📌 A color input designed for MUI (Material ui) V6 built with TinyColor
https://viclafouch.github.io/mui-color-input/
60 stars 20 forks source link

Unit test failing #18

Closed shin616122 closed 1 year ago

shin616122 commented 1 year ago

Describe the bug Error when trying to unit test mui-color-input Warning: React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object.

To Reproduce Steps to reproduce the behavior:

  1. Create a react application
  2. Install mui-color-input@1.1.0 (Happened to older version too)
  3. Install @testing-library/react@14.0.0
  4. Write a simple test to just render the component

Expected behavior Unit test to be passed.

Screenshots

image

Desktop (please complete the following information):

viclafouch commented 1 year ago

Fixed in 2.0.0