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

mocha-webpack

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mocha-webpack

mocha cli with webpack support

  • 0.0.1-alpha.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10K
decreased by-7.14%
Maintainers
1
Weekly downloads
 
Created
Source

mocha-webpack Build Status npm package

Precompiles your server-side webpack bundles before running mocha. Inspired by karma-webpack alternatives usage, but this is for NodeJS!

Looking for a test runner for the browser? Use karma-webpack instead.

Status

Work in progress...

Features

  • easy testing of webpack code in node with mocha
  • reruns modified tests on file change

Usage

run a single test

mocha-webpack --webpack-config webpack.config-test.js --colors test_index.js

run all tests by glob

mocha-webpack --webpack-config webpack.config-test.js --colors test/**/*.js

run all tests in directory (add --recursive to include subdirectories)

mocha-webpack --webpack-config webpack.config-test.js --colors test

Watch mode? just add --watch

mocha-webpack --webpack-config webpack.config-test.js --watch --colors test

CLI options

TODO

Keywords

FAQs

Package last updated on 21 Feb 2016

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