@elevate_security/browser-test-cli
Advanced tools
Comparing version 0.1.0 to 0.2.0
{ | ||
"name": "@elevate_security/browser-test-cli", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Run browser tests with Ghost Inspector and GitHub", | ||
"main": "index.js", | ||
"bin": { | ||
@@ -9,3 +10,4 @@ "run-browser-tests": "run-browser-tests.js" | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"lint": "eslint ." | ||
}, | ||
@@ -17,3 +19,9 @@ "license": "Apache-2.0", | ||
"octokit": "^3.1.2" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^8.56.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-prettier": "^5.1.3", | ||
"prettier": "^3.1.1" | ||
} | ||
} |
# browser-test-cli | ||
[![NPM Version (with dist tag)](https://img.shields.io/npm/v/%40elevate_security%2Fbrowser-test-cli/latest)](https://www.npmjs.com/package/@elevate_security/browser-test-cli) | ||
For running browser tests with Ghost Inspector and GitHub. | ||
@@ -14,2 +17,4 @@ | ||
``` | ||
GI_API_KEY=<<ghost-inspector-api-key>> \ | ||
GITHUB_TOKEN=<<github-token>> \ | ||
COMMIT_ID=<<git-commit>> \ | ||
@@ -16,0 +21,0 @@ SUITE_ID=<<ghost-inspector-suite-id>> \ |
@@ -33,16 +33,11 @@ #!/usr/bin/env node | ||
async function run() { | ||
stderr( | ||
`See https://app.ghostinspector.com/suites/${SUITE_ID} for test suite details.`, | ||
) | ||
stderr(`See https://app.ghostinspector.com/suites/${SUITE_ID} for test suite details.`) | ||
stderr(`Running tests for suite ${SUITE_ID}...`) | ||
const [{ _id: resultId }] = await ghostInspectorClient.executeSuite( | ||
SUITE_ID, | ||
{ | ||
browser: "chrome", | ||
startUrl: START_URL, | ||
immediate: true, | ||
}, | ||
) | ||
const [{ _id: resultId }] = await ghostInspectorClient.executeSuite(SUITE_ID, { | ||
browser: "chrome", | ||
startUrl: START_URL, | ||
immediate: true, | ||
}) | ||
@@ -67,4 +62,3 @@ const suiteResultUrl = `https://app.ghostinspector.com/suite-results/${resultId}` | ||
const testResults = | ||
await ghostInspectorClient.getSuiteResultTestResults(resultId) | ||
const testResults = await ghostInspectorClient.getSuiteResultTestResults(resultId) | ||
@@ -71,0 +65,0 @@ testResults.forEach((test) => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18605
10
216
27
4
7
2