Skip to content

Ignore Errors in Testing #97

Closed
@jantonso

Description

@jantonso

I am trying to write some test code using Jest and Enzyme to test out my components. I would like to be able to test that a proptype warning gets thrown when a prop is invalid, but I'm running into the issue where css modules uses the invalid prop to create the stylenames. Is there anyway to ignore these styleName not found errors in a test environment? I noticed that the react-css-modules has a flag for "errorWhenNotFound".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions