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
I've been enjoying the adapter, but running into an issue when trying to test class methods on my components.
I have the following: const enzymeWrapper = mount(<App {...props} />); expect(enzymeWrapper.instance().myMethod()).toBe("123");
But I get enzymeWrapper.instance(...).myMethod is not a function. Inspecting the output from enzymeWrapper.instance() I can see that my instance variables are available, but class methods are not.
The text was updated successfully, but these errors were encountered:
I've been enjoying the adapter, but running into an issue when trying to test class methods on my components.
I have the following:
const enzymeWrapper = mount(<App {...props} />); expect(enzymeWrapper.instance().myMethod()).toBe("123");
But I get
enzymeWrapper.instance(...).myMethod is not a function
. Inspecting the output fromenzymeWrapper.instance()
I can see that my instance variables are available, but class methods are not.The text was updated successfully, but these errors were encountered: