- Clone this project
- Install using follow command
npm install
Command | Description |
---|---|
npm run test:jest |
Run tests using jest |
npm run test:jest:coverage |
Run tests using jest --coverage |
npm run test:playwright |
Run tests using playwright |
npm run codegen |
Open playwright code generator |
npm run open:chrome |
Open chrome with playwright inspector |
npm run open:firefox |
Open firefox with playwright inspector |
npm run open:wk |
Open webkit (safari emulator) with playwright inspector |
See more: https://playwright.dev/docs/cli/#emulate-devices
- Click on menu View > Command Pallet...
- Search by "Debug: JavaScript Debug Terminal"
- Put breakpoint in your code or use the reserved word "debugger"
- Run code
- Click on "Run and Debug" side menu
- Select
Debug all jest tests via NPM
orDebug all playwright tests via NPM
option - Put breakpoint in your code or use the reserved word "debugger"
- Click on play button
See more: