Reputation: 525
Trying to launch cypress tests with
--headless --browser chrome
how it's described in the official documentation here
But for some reason --headless parameter is not recognizable and I'm getting
error: unknown option: --headless
Can't get what's wrong, looks like everything is pretty straightforward but can't get it working.
My application parameters:
./node_modules/.bin/cypress run --headless --browser chrome --env cfg=dev
Upvotes: 0
Views: 1828
Reputation: 11
Try this once,
./node_modules/.bin/cypress run -- --headless --browser chrome --env cfg=dev
Upvotes: 1