Skip to content

Jest tests fail with "module not found" #11

Description

@o-faro

Hi,
trying to run tests with jest fails with

Test suite failed to run
Cannot find module 'react-icon-system' from 'src/.../index.tsx'
...
> 6 | import Icon from "react-icon-system";
...
      at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:306:11)
      at Object.<anonymous> (src/.../index.tsx:6:1)
...
Test Suites: 1 failed, 1 total

I am working on a large project and there seems to be no problem with other node modules. Is it correctly exported as a module? Did not have time to look into this more closer.

Appreciate any help on this one! @Kosai106

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