Instructions for usage with Vitest don't work for me #587
Unanswered
FlinnBurgess
asked this question in
Q&A
Replies: 5 comments 2 replies
|
I have the same issue. |
0 replies
|
Have a read-through of #567 (comment) it might help. |
0 replies
|
@andykenward I already have my |
0 replies
|
Got it working on my end. I needed to ensure that our monorepo didn't have conflicting |
2 replies
|
I was having the same issue and it wasn't enough to just add the setup file to {
"compilerOptions": {
"types": ["@testing-library/jest-dom/vitest"]
}
} |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello, I've been helping my team switch from Jest to Vitest, and I noticed that I was getting a lot of type errors along the lines of
Property toBeInTheDocument does not exist on type JestMatchers<HTMLElement>. After a little digging I realised I could fix it by replacingwith
in my
vitest.setup.tsfile.This seems be the opposite of the instructions on the npm page, so I'm wondering if this is a side effect of me doing something else wrong?
All reactions