Socket
Socket
Sign inDemoInstall

@drtyhu8npm/molestiae-nisi-necessitatibus

Package Overview
Dependencies
28
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @drtyhu8npm/molestiae-nisi-necessitatibus

## Overview


Version published
Weekly downloads
6
decreased by-88.68%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

@drtyhu8npm/molestiae-nisi-necessitatibus

Overview

Simple framework for unit testing CJS Node.js modules using the following modules:

  • mocha - testing framework;
  • chai - assertion library;
  • sinon - test framework for stubs, spies and mocks;
  • nyc - code coverage checker;
  • rewire - allows access to the unexported items from the module under test;

Features

The following unexported module items may be stubbed for testing:

  • function;
  • class constructor.

Unexported module items, e.g., variables, required modules, may be accessed and faked.

Usage

See ./test/unit for example usage.

Testing

The following test scripts may be run from the command line:

  • npm run test
    • Runs the unit tests, code coverage and outputs the coverage stats.
  • npm run coverage
    • Generates the code coverage data in html format in the './coverage' directory.
  • npm run lint
    • Run eslint on the source and test code; if no errors are detected, only the lint command line is output.

Keywords

FAQs

Last updated on 25 Apr 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc