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.
prescript is a Node.js-based test runner that helps make it fun to write end-to-end/acceptance tests.
Writing functional and end-to-end tests (e.g. using Puppeteer or Selenium) with unit-testing frameworks such as Mocha can sometimes be painful, because when one step failed, you have to re-run the test from the beginning to verify that you fixed it. End-to-end tests is usually very slow compared to unit tests.
prescript solves this problem by allowing you to express your tests as multiple, discrete steps. prescript then comes with an interactive development mode, in which you can hot-reload the test script and jump between steps.
This means as you run your tests as you write it. And if you make a mistake you can fix your test, hot reload, and continue testing, without having to re-run the whole test suite.
Documentation is available on our website.
Running Prescript example scenarios:
yarn test-examples
Running individual scenario:
./bin/prescript "./examples/calculator/tests/Basic addition (page object).js"
Running unit tests:
yarn test
FAQs
Object-oriented acceptance test tool
The npm package prescript receives a total of 372 weekly downloads. As such, prescript popularity was classified as not popular.
We found that prescript demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.