Skip to content

vitest-angular: Cannot read properties of undefined (reading 'addSnapshotSerializer') #1491

Answered by brandonroberts
malua asked this question in Q&A
Discussion options

You must be logged in to vote

Try these:

  • Adding globals: true to the test object in the vite.config.mts

Removing these lines from your test

import { beforeEach, describe, expect, it } from 'vitest';

Remove this line to see if you get a different error

import '@testing-library/jest-dom/vitest';

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@malua
Comment options

Answer selected by malua
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
2 participants
Converted from issue

This discussion was converted from issue #1490 on December 10, 2024 17:48.