Closed apacha closed 1 year ago
You're using the wrong name, you should use quasar test --unit vitest
Vite is the bundler, not the test runner
Also, please re-install the testing AE and Vitest AE, I just published a fix since it was fetching v0.1 instead of v0.3 of Vitest AE
About the "alpha" state of Vitest AE: we're just following Vitest own status Vitest is currently in v0.x status, which is usually referenced as alpha, so we're in alpha too
As soon as Vitest v1 is released, our Vitest AE will be released as stable too
I've created a fresh Quasar project and wanted to add testing capabilities to the project with running
I've added both unit-testing with vite and e2e testing with cypress. However, when running
I get the error message that
but that package can't be installed as suggested by the comment:
Software version
OS: MacOS Node: 20.5.0 NPM: 9.8.0
What did you get as the error?
'@quasar/quasar-app-extension-testing-unit-vite@*' is not in this registry.
What were you expecting?
A project that has unit-testing and e2e-testing correctly set up, such that I can start a new project.
Question regarding testing of Quasar apps
Is unit-testing something that Quasar supports? I mean I'm using Vite and Jest+Webpack is not an option. Vite+Vitest has been in Alpha for 2 years.
What is the recommended way of writing unit-tests with Quasar? Links to other up-to-date resources would be highly appreciated.