Add package script for running js tests and regenerate yarn.lock

This commit is contained in:
Emili Castells Guasch 2024-06-16 10:36:19 +02:00
parent 610db964f7
commit 7fd0d2e431
2 changed files with 157 additions and 364 deletions

View file

@ -80,6 +80,7 @@
"pw-install": "yarn playwright install --with-deps",
"pw-tests": "yarn playwright test",
"pw-tests-headed": "yarn playwright test --headed",
"test:unit": "wp-scripts test-unit-js",
"prebuild": "rm -rf ./vendor && find . -name 'node_modules' -type d -maxdepth 3 -exec rm -rf {} +",
"build": "composer install --no-dev && yarn install && yarn run archive",
"prearchive": "rm -rf $npm_package_name.zip",