Skip to content

Alternative for jest-snapshot package #7848

@Smrtnyk

Description

@Smrtnyk

Clear and concise description of the problem

Coming from the #7847 (comment)
We need to enable browser mode tests in the future for unit tests
Ideally we want to run them in both node and browser environments, but currently we can only run it in node/jsdom env because we are using jest-snapshot.
Opening this issue as proposed in the discussion by @hi-ogawa

linking our usecase: https://github.com/fabricjs/fabric.js/blob/master/vitest.extend.ts#L3

Suggested solution

Maybe an export toMatchSnapshot from vitest package that can be used just like jest one?

Alternative

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions