Open alex-akanthas opened 1 year ago
Reopening https://github.com/srigar/multiselect-react-dropdown/issues/78
@srigar I'm still getting this error with version 2.0.25 and jest
/** * @jest-environment jsdom */ import renderer from 'react-test-renderer'; import { Multiselect } from 'multiselect-react-dropdown'; it('multiselect renders', () => { let state = { options: [{name: 'Option 1', id: 1},{name: 'Option 2', id: 2}] }; const tree = renderer .create(<Multiselect options={state.options} // Options to display in the dropdown displayValue="name" // Property name to display in the dropdown options /> ) .toJSON(); expect(tree).toMatchSnapshot(); });
Any help would be much appreciated. The component itself works great with some nice fixes being observed after we upgraded from 1.6 to 2.0.25 :-)
And please let me know if I have done something wrong
Reopening https://github.com/srigar/multiselect-react-dropdown/issues/78
@srigar I'm still getting this error with version 2.0.25 and jest
Any help would be much appreciated. The component itself works great with some nice fixes being observed after we upgraded from 1.6 to 2.0.25 :-)