Quasar Vitest Test repo to reproduce a vitest error.
Just clone this repo, ensure your port 9000
is free, and run
docker compose up
These are the steps I followed to build the container.
- Run
yarn create quasar
and enter the following:- App with Quasar CLI, let's go!
- Project folder:
qvt
- Quasar v2 (Vue 3)
- Typescript
- Quasar App CLI with Vite 6 (v2)
- Package name:
qvt
- Product name:
QVT
- Description:
Quasar test
- Author: (leave blank)
- Composition API with
<script setup>
- Sass with SCSS syntax
- Linting (vite-plugin-checker + ESLint + vue-tsc)
- Prettier:
Y
- Install dependencies:
Yes, use yarn
Add the vitest app extension:
cd qvt/ # make sure you're in the project directory
yarn quasar ext add @quasar/testing-unit-vitest
The UI can be omitted, as errors are raised without it.
Delete the ExampleComponent tests file.
rm test/vitest/__tests__/ExampleComponent.test.ts