Snapshot file path different in CI causing failure #1646
Answered
by
sheremet-va
MichaelFBA
asked this question in
Q&A
-
Describe the bugWhen using snapshots in vitest the __file path is different in dev / ci causing the test to fail in CI
|
Beta Was this translation helpful? Give feedback.
Answered by
sheremet-va
Jul 15, 2022
Replies: 1 comment 1 reply
-
This is not an issue with Vitest. If you are making snapshots of Vue components, it's better to use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Demivan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is not an issue with Vitest. If you are making snapshots of Vue components, it's better to use
wrapper.element
.