Files
vue-cli/packages/@vue/cli-plugin-unit-mocha
Guillaume Chau 96778b2caf chore: update main deps (#1772)
* chore: update main deps

* chore: update ts types

* chore: update generator deps versions

* fix: ts-jest

* chore: upgrade ts-jest again

* fix: re-generated yarn.lock

* chore: more upgrades

* fix: jest test matching on Windows
2018-07-08 13:56:10 +02:00
..
2018-05-01 18:15:25 -04:00
2018-07-08 13:56:10 +02:00
2018-01-11 00:37:21 -05:00
2018-03-20 01:39:26 +01:00
2018-07-08 13:56:10 +02: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:unit

    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:unit [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

vue add @vue/unit-mocha