I have this script on package.json file:
"test:debug": "yarn build && playwright test --project=chromium-debug -c build && ts-node ./src/logs/generateLog.ts"
When I run this command: yarn test:debug -g 'myTestName' I see in the terminal that it runs this command:
yarn build && playwright test --project=chromium-debug -c build && ts-node ./src/logs/generateLog.ts -g 'myTestName'
but I want it to run this command:
yarn build && playwright test --project=chromium-debug -c build -g 'myTestName' && ts-node ./src/logs/generateLog.ts
What should I change in my script in order to achieve that?