Skip to content

pbratkowski/qvt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Quasar Vitest app extension errors

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published