Skip to content

Commit a42058e

Browse files
committed
check all JS files in tests
1 parent 858d8b9 commit a42058e

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"format": "wp-scripts format ./assets",
2626
"lint:css": "wp-scripts lint-style \"**/*.css\"",
2727
"lint:css:fix": "npm run lint:css -- --fix",
28-
"lint:js": "wp-scripts lint-js ./assets/js/*.js && wp-scripts lint-js ./assets/js/web-components/*.js && wp-scripts lint-js ./assets/js/widgets/*.js && wp-scripts lint-js ./assets/js/recommendations/*.js && wp-scripts lint-js ./tests/e2e/*.js",
29-
"lint:js:fix": "wp-scripts lint-js ./assets/js/*.js --fix && wp-scripts lint-js ./assets/js/web-components/*.js --fix && wp-scripts lint-js ./assets/js/widgets/*.js --fix && wp-scripts lint-js ./assets/js/recommendations/*.js --fix && wp-scripts lint-js ./tests/e2e/*.js --fix",
28+
"lint:js": "wp-scripts lint-js ./assets/js/*.js && wp-scripts lint-js ./assets/js/web-components/*.js && wp-scripts lint-js ./assets/js/widgets/*.js && wp-scripts lint-js ./assets/js/recommendations/*.js && wp-scripts lint-js ./tests/**/*.js",
29+
"lint:js:fix": "wp-scripts lint-js ./assets/js/*.js --fix && wp-scripts lint-js ./assets/js/web-components/*.js --fix && wp-scripts lint-js ./assets/js/widgets/*.js --fix && wp-scripts lint-js ./assets/js/recommendations/*.js --fix && wp-scripts lint-js ./tests/**/*.js --fix",
3030
"prepare": "husky",
3131
"test:e2e": "playwright test",
3232
"test:e2e:ui": "playwright test --ui",

tests/e2e/helpers/cleanup.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ const SELECTORS = require( '../constants/selectors' );
1212
*/
1313
async function cleanUpPlannerTasks( { page, context, baseUrl } ) {
1414
try {
15-
if ( page.isClosed?.() ) return;
15+
if ( page.isClosed?.() ) {
16+
return;
17+
}
1618

1719
await page.goto(
1820
`${ baseUrl }/wp-admin/admin.php?page=progress-planner`

0 commit comments

Comments
 (0)