Repository navigation
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 |
Answered by
brandonroberts
Dec 10, 2024
Replies: 1 comment 4 replies
|
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 |
4 replies
Answer selected by
malua
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try these:
globals: trueto thetestobject in thevite.config.mtsRemoving these lines from your test
Remove this line to see if you get a different error