Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.01 KB

README.md

File metadata and controls

46 lines (34 loc) · 1.01 KB

qvt

Quasar Vitest Test repo to reproduce a vitest error.

Running in docker

Just clone this repo, ensure your port 9000 is free, and run

docker compose up

Reproducing manually

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