# @vue2do/test

> Test utils for Vue.

Latest version **1.1.19** (published 2020-03-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @vue2do/test
pnpm add @vue2do/test
yarn add @vue2do/test
bun add @vue2do/test
```

Provides the command `vue2do-test`.

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.19 |
| Published | 2020-03-24 |
| First published | 2020-02-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 19 |
| Unpacked size | 49.2 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| Author | zenwong@aliyun.com |
| Maintainers | zenwong |

## Links

- npm: https://www.npmjs.com/package/@vue2do/test
- npm.io page: https://npm.io/package/@vue2do/test

## Dependencies (19)

- [chai](https://npm.io/package/chai.md) ^4.2.0
- [glob](https://npm.io/package/glob.md) ^7.1.6
- [chalk](https://npm.io/package/chalk.md) ^3.0.0
- [karma](https://npm.io/package/karma.md) ^4.1.0
- [mocha](https://npm.io/package/mocha.md) ^5.2.0
- [sinon](https://npm.io/package/sinon.md) ^7.1.1
- [karma-chai](https://npm.io/package/karma-chai.md) ^0.1.0
- [sinon-chai](https://npm.io/package/sinon-chai.md) ^3.2.0
- [karma-mocha](https://npm.io/package/karma-mocha.md) ^1.3.0
- [karma-webpack](https://npm.io/package/karma-webpack.md) ^4.0.2
- [karma-sinon-chai](https://npm.io/package/karma-sinon-chai.md) ^2.0.2
- [karma-spec-reporter](https://npm.io/package/karma-spec-reporter.md) ^0.0.32
- [karma-sauce-launcher](https://npm.io/package/karma-sauce-launcher.md) ^2.0.2
- [babel-plugin-istanbul](https://npm.io/package/babel-plugin-istanbul.md) ^5.1.4
- [karma-chrome-launcher](https://npm.io/package/karma-chrome-launcher.md) ^2.2.0
- [karma-sourcemap-loader](https://npm.io/package/karma-sourcemap-loader.md) ^0.3.7
- [karma-source-map-support](https://npm.io/package/karma-source-map-support.md) ^1.2.0
- [istanbul-instrumenter-loader](https://npm.io/package/istanbul-instrumenter-loader.md) ^3.0.1
- [karma-coverage-istanbul-reporter](https://npm.io/package/karma-coverage-istanbul-reporter.md) ^2.0.5

## Recent versions

- 1.1.19 (latest) — 2020-03-24
- 1.1.18 — 2020-03-24
- 1.1.17 — 2020-03-24
- 1.1.16 — 2020-03-23
- 1.1.15 — 2020-03-22
- 1.1.14 — 2020-03-22
- 1.1.13 — 2020-03-22
- 1.1.12 — 2020-03-22
- 1.1.11 — 2020-03-05
- 1.1.10 — 2020-03-05
- 1.1.9 — 2020-03-05
- 1.1.8 — 2020-03-05
- 1.1.7 — 2020-03-05
- 1.1.6 — 2020-03-05
- 1.1.5 — 2020-03-05
- … 5 more at https://npm.io/package/@vue2do/test/versions

## README

# Test Utils for Vue

[![npm version](https://badge.fury.io/js/%40vue2do%2Ftest.svg)](https://badge.fury.io/js/%40vue2do%2Ftest)

## Configuration

同 `karam-webpack` 的配置，详情查看 [karam 配置文档网站](http://karma-runner.github.io/4.0/config/configuration-file.html)

### 项目配置文件

以下只列些本工具定制化过的配置

- files: 需要测试的文件路径
- preprocessors: 需要预处理的文件路径
- port: 测试服务的端口
- webpack: webpack 配置文件
- webpackMiddleware: webpack-dev-middleware configuration

> 在 cli 中一定需要传 path 参数的

### ProjectConfig 参数

`require` 引入时可以只传入 `config` 参数，则必须传入 `path`。
如果也传入 `configPath` 了，会和 `config` 合并，且 `config` 的优先级更高

```js
const vue2doTest = require('@vue2do/test')

vue2doTest.dev({
  config: {
    port: 5208
  },
  configPath: path.resolve(__dirname, '../project.config.js')
})
```

---
_Source: https://npm.io/package/@vue2do/test · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
