Skip to content

when i learn vue2 + vitest by vue2 demo, miss this line, and get unexpect result, make me confused #1901

Answered by sheremet-va
zhanglolo asked this question in Q&A
Discussion options

You must be logged in to vote

vue test utils uses CJS version of vue. if you don't alias it in your application, Vitest will use ESM version. this is why we have this line in example

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by zhanglolo
Comment options

You must be logged in to vote
4 replies
@sheremet-va
Comment options

@zhanglolo
Comment options

@sheremet-va
Comment options

@zhanglolo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants