Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@gliff-ai/jest-browserstack-automate
Advanced tools
Simple harness for running Automate tests with Jest
Wrapper to setup broswer stack and run Selenium tests with Jest
To Use:
// Replaces the Jest global `test` with our function, which has a selenium driver as an arg. This handles sending pass/failure status to Browserstack.
const {
wrapper,
test,
webdriver,
} = require("@gliff-ai/jest-browserstack-automate")();
const { TARGET_URL = "http://localhost:3000/" } = process.env;
// Wrappper is a jest describe with before/after hooks to setup browserstack and the local tunnel
wrapper(() => {
describe("Load page", () => {
test("Loads the page", async (driver) => {
await driver.get(TARGET_URL);
await driver.wait(webdriver.until.titleMatches(/Title/i), 5000);
const title = await driver.getTitle();
expect(title).toEqual("PAGE TITLE");
});
});
});
run with jest --no-colors
as we send the message to browserstack so don't want the colour codes.
If no env vars are set, it will run locally, you will need the driver installed for the selected browser.
If BROWSERSTACK_NAME is set, it will use Browserstack for the driver (capabilities can be passed as the final arg to test
)
If BROWSERSTACK_ACCESS_KEY is set, the Browserstack local proxy will be set up, which allows the use of local URLs.
FAQs
Simple harness for running Automate tests with Jest
The npm package @gliff-ai/jest-browserstack-automate receives a total of 3 weekly downloads. As such, @gliff-ai/jest-browserstack-automate popularity was classified as not popular.
We found that @gliff-ai/jest-browserstack-automate demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.