vitest-angular: Cannot read properties of undefined (reading 'addSnapshotSerializer') #1491
-
Please provide the environment you discovered this bug in.I cannot reproduce the error in a clean repo. So it's got to have something to do with my config. I would be really grateful if you could just point me in the right direction. And sorry for the "bug ticket", because it's most likely not a bug with vitest-angular. Thank you! Which area/package is the issue in?vitest-angular DescriptionI am trying to setup vitest with Angular, but unfortunately I could not fix the latest error myself. This is the test I am running:
this is my
And my
Please provide the exception or error you saw
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Try these:
Removing these lines from your test import { beforeEach, describe, expect, it } from 'vitest'; Remove this line to see if you get a different error
|
Beta Was this translation helpful? Give feedback.
Try these:
globals: true
to thetest
object in thevite.config.mts
Removing these lines from your test
Remove this line to see if you get a different error