Skip to content

npm Scripts Reference

yhAutomationQA edited this page May 16, 2026 · 1 revision

npm Scripts Reference

Test Execution

Script Description
test Run all tests (respects ENV var)
test:dev / test:qa / test:staging Specific environment
test:chrome / test:firefox Specific browser
open / open:dev / open:qa / open:staging Open Test Runner

CI Scripts

Script Description
ci:lint ESLint + Prettier check
ci:smoke @smoke tests in Chrome
ci:regression @regression tests in Chrome
ci:regression:0/1/2 Parallel splits
ci:all All features in Chrome

Reporting

Script Description
report:generate Allure + Mochawesome
report:open Open Allure report
report:allure:generate Allure HTML
report:mochawesome:full Merge JSON + generate HTML
report:clean Clean all artifacts

Docker

Script Description
docker:build Build image
docker:test All tests
docker:test:dev/qa/staging Specific env
docker:smoke/regression/api By tag
docker:bash Interactive shell

Code Quality

Script Description
lint ESLint check
lint:fix ESLint auto-fix
format Prettier write
format:check Prettier check

Clone this wiki locally