We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If I use toMatchFileSnapshot the output of expect(document.body).toMatchFileSnapsot('./__snapshots__/test.snap is always
toMatchFileSnapshot
expect(document.body).toMatchFileSnapsot('./__snapshots__/test.snap
<body> <div /> </body>
If the exact same statement is replaced by expect(document.body).toMatchInlineSnapshot() , I see real content
expect(document.body).toMatchInlineSnapshot()
No reproduction needed
- node: v20.1.0 - vitest@0.34.4 - vite: 4.4.9 - react-testinglibrary - @testing-library/dom: 8.13.0 - @testing-library/user-event: 14.5.1
npm
The text was updated successfully, but these errors were encountered:
OK, I found out you need to make sure to:
it('sometest', ({ expect }) => {...})
it
Sorry, something went wrong.
No branches or pull requests
Describe the bug
If I use
toMatchFileSnapshot
the output ofexpect(document.body).toMatchFileSnapsot('./__snapshots__/test.snap
is alwaysIf the exact same statement is replaced by
expect(document.body).toMatchInlineSnapshot()
, I see real contentReproduction
No reproduction needed
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: