Skip to content

Jest snapshot test: TypeError: Cannot read property 'monitorScrollValue' of null #254

Open
@dbertella

Description

@dbertella

Summary:

I'm trying to make a snapshot test with jest and I got this error: TypeError: Cannot read property 'monitorScrollValue' of null and the test fail without making any snapshot

Steps to reproduce:

  1. make a snapshot test following jest tutorial, on a component with a modal in it

Expected behavior:

Snapshot is created

Additional notes:

I'm using create react app.

Metadata

Metadata

Assignees

No one assigned

    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