python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Vue Pinia function is undefined in onMounted when unit test is ran
I have a component and a Pinia store which contains a state and some actions. The code works perfectly fine in browser and in E2E (cypress) tests, but fail on unit tests. I'm using vue-testing-utils a...
Josh Larminay
Votes: 0
Answers: 2
Cannot find module 'react' when use third party React UI lib - Vite + Preact
I'm facing this issue in this Vite started repository.
https://github.com/vicainelli/vite-starter
I'm using Vite + Preact + Vitest + Testing Library
If I'm testing any code inside the codebase, it wor...
Vinicius Cainelli
Votes: 0
Answers: 1
How to test Vue 2 css class styles using vitest and vue test utils
I'm writing a component library that uses SCSS modules (<component>.module.scss) for styling. I want to set up my tests to also test if all the styles are applied correctly. Right now I'm only a...
Johannes
Votes: 0
Answers: 1
Vue3 testing ElementPlus controls with vitest
I am running Vue3 with vite and can't write any tests for components that use the ElementPlus library. Something else needs to be injected apparently but I don't know how to do that.
I have the follow...
GeeWhizBang
Votes: 0
Answers: 2