Skip to content

Can't seem to test with React 16, Jest, Enzyme 3.3 #52

@kamranayub

Description

@kamranayub

I've made a reproduction here; the IdleTimer works in the app but does not work when mounted during a test:

https://codesandbox.io/s/6vzxx83r0z

I get the error:

Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Check the render method of `WrapperComponent`.

I'm specifically using the same enzyme and enzyme-adapter-react-16 versions listed in the package.json.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions