Skip to content

TypeError: instance.unmount is not a function #2

@SoraYama

Description

@SoraYama

In some special occasions I want to unmoun a component by calling unmount imported from enzyme , however I come into this bug when I call unmount when testing rax component, call stack as below:

at Object.unmount (node_modules/_enzyme-adapter-rax@1.0.3@enzyme-adapter-rax/lib/Adapter.js:328:18)
at ReactWrapper.callback (node_modules/_enzyme@3.11.0@enzyme/src/ReactWrapper.js:304:7)
at ReactWrapper.<anonymous> (node_modules/_enzyme@3.11.0@enzyme/src/ReactWrapper.js:1170:12)
at ReactWrapper.unmount (node_modules/_enzyme@3.11.0@enzyme/src/ReactWrapper.js:303:5)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions