Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

browser-test-mocha

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browser-test-mocha

Sets up a test server using Mocha and Chai to test against a browser environment

  • 0.1.0
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

browser-test-mocha

browser-test-mocha sets up a test server using Mocha and Chai to test against a browser environment. You can use any mocha or chai functionality inside of your test files with sinon support coming soon.

NPM version Known Vulnerabilities NPM downloads issues license Gitter

Table of contents

Install

To install it as a global command to use anywhere you can use:

$ npm install -g browser-test-mocha

Otherwise, if you just want to use it programmatically inside of a project, you can install it at a project level:

$ npm install --save-dev browser-test-mocha

Usage

To use browser-test-mocha, you need to pass the files containing the tests to it:

$ browser-test-mocha -f test/one.js,test/two.js,test/three.js

The -f flag indicates that you are passing the test files and multiple files can be passed separated by commas and no spaces in between.

After it has finished doing the necessary file operations, a http server will start up at nearest available port to 3000 and if you navigate to it in a browser, you will see the results of your tests.

Flags

Currently browser-test-mocha only has one flag (other than version):

browser-test-mocha [options] <files>

-f, --files         Specifies the files to pass to be tested.
-V, --version       Outputs the current version of browser-test-mocha

License

MIT

Keywords

FAQs

Package last updated on 28 Aug 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc