quasar-testing: [@quasar/testing-quality] Unknown command "serve" when executing serve:test:lighthouse
Software version
"devDependencies": {
"@quasar/app": "^1.0.0-rc.6",
"@quasar/quasar-app-extension-testing": "^1.0.0",
"@quasar/quasar-app-extension-testing-e2e-cypress": "^1.0.0-beta.10",
"@quasar/quasar-app-extension-testing-quality": "^1.0.0-beta.8",
What did you get as the error?
$ yarn run serve:test:lighthouse
yarn run v1.16.0
$ quasar serve test/lighthouse/reports/ --port 8789
app Unknown command "serve" +2ms
Please note that running directly did work:
$ quasar serve test/lighthouse/reports/ --port 8789
# worked...
About this issue
- Original URL
- State: open
- Created 5 years ago
- Reactions: 2
- Comments: 23 (7 by maintainers)
I want to serve
command serve
throughpackage.json-dependancy
. Not globalquasar/cli
.To solve this problem I am using
@quasar/cli
asdevDependencies
.npm i -D @quasar/cli
I also encountered this for
serve:test:coverage
andserve:test:lighthouse
. I’m not exactly clear where these commands fit into my workflow yet.Seems like the workaround is to run the
quasar serve test/jest/coverage/lcov-report/ --port 8788
command directly in the shell.Running
quasar
from@quasar/cli
is the only way I’ve managed to start it without diving too deep:node node_modules\@quasar\cli\bin\quasar serve
Because general
quasar
frommode_nodules/.bin
directs to@quasar/app
which somehow has no idea aboutcli
.