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
import { h, render, Component } from "preact";
import Input from "../components/input"; // It is a input component
import { mount } from "enzyme";
let value;
const input = mount(<Input changeCallback={val => value = val}/>);
input.simulate('change');
I get the above error TestUtils is not defined. I'm facing below issues,
when i look in the preactEnzymeAdapter.js, there is no TestUtils. How to work with this library.
when i try to run input.setProps() method, I get this error
TypeError: instance.setChildProps is not a function
The text was updated successfully, but these errors were encountered:
ReferenceError: TestUtils is not defined
I get the above error TestUtils is not defined. I'm facing below issues,
TypeError: instance.setChildProps is not a function
The text was updated successfully, but these errors were encountered: