
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
assert-report
Advanced tools
A barebones test reporter in <4kb with zero dependencies
Do you have a really simple package that you want to test, but don't really need any bells or whistles? If so, this package might be helpful. assert-report provides an extremely minimal test result interface for those cases where you just want to write out a few tests in test.js
and run node test.js
. It's essentially a small wrapper around the native assert
module.
If you want a test runner or super specific error messages, then this probably isn't what you're looking for.
$ npm install --save-dev assert-report
assert-report exports two familar methods, describe
and it
describe(testSuite: string, assertions: () => void)
describe('your test suite', () => {
// it blocks go here
})
it(testSuite: string, assertion: (assert) => void)
describe('your test suite', () => {
it('should use assert to pass or fail a test', assert => {
assert(myObject.property === expectedProperty)
})
})
FAQs
A barebones test reporter with zero dependencies
The npm package assert-report receives a total of 1 weekly downloads. As such, assert-report popularity was classified as not popular.
We found that assert-report demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.