📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

vue-cli-plugin-ui-karma

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-cli-plugin-ui-karma

vue-cli 3.x ui plugin to add Karma to your Vue Project

0.2.5
latest
Source
npm
Version published
Weekly downloads
30
36.36%
Maintainers
1
Weekly downloads
 
Created
Source

☕️ vue-cli-plugin-ui-karma

ui-karma plugin(ui) for vue-cli 3.x

This adds unit testing support using Karma.

Features

Implemented

  • Run unit tests in headless chrome(default) with vue-cli-service karma --file karma.conf.js.
  • Add customizable karma conf files for vue project.
  • Add demo unit tests for normal vue project and example element-ui unit tests for vue project with element-ui.

Injected Commands

  • vue-cli-service karma

    run unit tests with karma.

    Options:

    start               run unit tests against auto-starting karma server
    karma.conf.*.js     runs with a specific karma conf file. (default: karma.conf.js)
    

    This command automatically starts a karma server in development mode to run the unit tests against.

Configuration

We've pre-configured Karma to place most of the unit testing related files under <projectRoot>/.

Installing in an already created project

npm install -D vue-cli-plugin-ui-karma

For Karma Statistics in vue-cli 3.x ui, please install vue-cli-addon-ui-karma in npm's global mode.

npm install -g vue-cli-addon-ui-karma

FAQs

Package last updated on 04 May 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