Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: fix a lint on win (#23554)

Pavel Feldman294f5c965a31
diff --git a/utils/check_deps.js b/utils/check_deps.js
index f599d267a6..3c083b4766 100644
--- a/utils/check_deps.js
+++ b/utils/check_deps.js
@@ -22,7 +22,7 @@ const fs = require('fs');
const ts = require('typescript');
const path = require('path').posix;
-const packagesDir = path.normalize(path.join(__dirname, '..', 'packages'));
+const packagesDir = path.resolve(path.join(__dirname, '..', 'packages'));
const packages = new Map();
for (const package of fs.readdirSync(packagesDir))
@@ -64,7 +64,7 @@ async function innerCheckDeps(root) {
let packageJSON;
try {
- packageJSON = require(path.join(root, 'package.json'));
+ packageJSON = require(path.resolve(path.join(root, 'package.json')));
} catch {
}