Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@microsoft/extra-shot-mocha
Advanced tools
This package is an extension of [Mocha](https://mochajs.org/).
This package is an extension of Mocha.
npm install --save-dev @microsoft/extra-shot-mocha
Sometimes, we're gonna add extra data to our test cases and show it in the report. You can use this "it" to replace mocha.it.
(Currently, this depends on Mochawesome as reporter. We'll develop a new reporter later.)
import it from "@microsoft/extra-shot-mocha";
import { describe } from "mocha";
import { expect } from "chai";
describe("extra shot mocha it tests", async () => {
it("should run as normal mocha.it with sync arrow function", () => {
expect(1).equals(1);
});
it("should run as normal mocha.it with async arrow function", async () => {
expect(1).equals(1);
});
it("should inject ctx with async function", { a: 1 }, async function () {
expect(1).equals(1);
});
it("should inject ctx with async arrow function", { a: 1 }, async () => {
expect(1).equals(1);
});
it("should inject ctx with sync function", { a: 1 }, function () {
expect(1).equals(1);
});
it("should inject ctx with sync arrow function", { a: 1 }, () => {
expect(1).equals(1);
});
});
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
FAQs
This package is an extension of [Mocha](https://mochajs.org/).
The npm package @microsoft/extra-shot-mocha receives a total of 7,402 weekly downloads. As such, @microsoft/extra-shot-mocha popularity was classified as popular.
We found that @microsoft/extra-shot-mocha demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.