Files
vue-cli/packages/@vue/cli-plugin-unit-mocha
Evan You d595adacf4 refactor: adjust mode loading order
BREAKING CHANGE: PluginAPI.setMode() has been removed. Instead, for a plugin to
sepcify the default mode for a registered command, the plugins should expose
`module.exports.defaultModes` in the form of `{ [commandName]: mode }`.

close #959
2018-05-01 17:14:33 -04:00
..
2018-04-30 18:35:36 -04:00
2018-01-11 00:37:21 -05:00
2018-05-01 17:14:33 -04:00
2018-04-27 22:35:57 -04:00
2018-01-11 00:37:21 -05:00

@vue/cli-plugin-unit-mocha

unit-mocha plugin for vue-cli

Injected Commands

  • vue-cli-service test

    Run unit tests with mocha-webpack + chai.

    Note the tests are run inside Node.js with browser environment simulated with JSDOM.

    Usage: vue-cli-service test [options] [...files]
    
    Options:
    
      --watch, -w   run in watch mode
      --grep, -g    only run tests matching <pattern>
      --slow, -s    "slow" test threshold in milliseconds
      --timeout, -t timeout threshold in milliseconds
      --bail, -b    bail after first test failure
      --require, -r require the given module before running tests
      --include     include the given module into test bundle
    

    Default files matches are: any files in tests/unit that end in .spec.(ts|js).

    All mocha-webpack command line options are also supported.

Installing in an Already Created Project

npm install -D @vue/cli-plugin-unit-mocha
vue invoke unit-mocha