Skip to content

Avoid picking up global state for snapshot tests #297

Open
@varungandhi-src

Description

@varungandhi-src

I had a confusing problem where React 18.2.0 symbols were getting emitted despite no mentions in the repo, causing a mismatch between CI and local snapshots. The problem was that I had a global ~/node_modules folder with an older version of @types/react. b0c554b (#296)

We should exclude global deps during tests.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions