[Vuejs]-Run vue-cli-service serve and cucumber tests sequentially

0👍

I seem to have found an answer

  1. Use pm2 process manager, yarn add pm2 –dev
  2. Run build for you application which creates the dist folder
  3. Use the node scripts below

"test:cucumber": "cucumber-js –require ./cucumber.js –require .//step-definitions/**/*.js ",

"delete-pm2": "pm2 delete all",

"test:playwright": "pm2 serve dist 8080 –spa && npm run test:cucumber && npm run delete-pm2"

Then run

yarn test:playwright

Leave a comment