mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-09 06:55:03 +00:00
tests: playwright tests for all OS environments
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user