Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@elevate_security/browser-test-cli

Package Overview
Dependencies
Maintainers
6
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elevate_security/browser-test-cli - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

.eslintignore

12

package.json
{
"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>> \

20

run-browser-tests.js

@@ -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) => {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc