tests: playwright tests for all OS environments

This commit is contained in:
Bijin A B
2026-05-14 17:38:55 +05:30
committed by GitHub
parent 9190de53ad
commit d79aabb9f5
66 changed files with 1077 additions and 700 deletions

View File

@@ -36,7 +36,8 @@
"api-scripting"
],
"scripts": {
"test": "node --experimental-vm-modules $(npx which jest)"
"test": "node --experimental-vm-modules $(npx which jest)",
"test:ci": "node --experimental-vm-modules ../../node_modules/jest/bin/jest.js"
},
"files": [
"src",

View File

@@ -74,7 +74,8 @@ const builder = (yargs) => {
const isUrl = (str) => {
try {
return Boolean(new URL(str));
const url = new URL(str);
return url.protocol === 'http:' || url.protocol === 'https:';
} catch (error) {
return false;
}