# unit-env

> Unit Test Starter

Latest version **0.0.1** (published 2016-09-13) · 0 weekly downloads

## Install

```sh
npm install unit-env
pnpm add unit-env
yarn add unit-env
bun add unit-env
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2016-09-13 |
| First published | 2016-09-13 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 14 |
| Known vulnerabilities | 0 (+4 in 3 direct dependencies) |
| Install scripts | no |
| Maintainers | yakun.cyk |
| Keywords | unit, test, vue, react |

## Links

- npm: https://www.npmjs.com/package/unit-env
- npm.io page: https://npm.io/package/unit-env

## Dependencies (14)

- [karma](https://npm.io/package/karma.md) ^0.13.22
- [phantomjs](https://npm.io/package/phantomjs.md) ~1.9.0
- [nightwatch](https://npm.io/package/nightwatch.md) ^0.8.18
- [karma-mocha](https://npm.io/package/karma-mocha.md) ^0.2.0
- [karma-sinon](https://npm.io/package/karma-sinon.md) ^1.0.5
- [chromedriver](https://npm.io/package/chromedriver.md) ^2.21.2
- [karma-webpack](https://npm.io/package/karma-webpack.md) ^1.7.0
- [selenium-server](https://npm.io/package/selenium-server.md) 2.53.0
- [karma-sinon-chai](https://npm.io/package/karma-sinon-chai.md) ^1.2.3
- [karma-mocha-reporter](https://npm.io/package/karma-mocha-reporter.md) ^2.0.0
- [karma-chrome-launcher](https://npm.io/package/karma-chrome-launcher.md) ^0.2.0
- [karma-less-preprocessor](https://npm.io/package/karma-less-preprocessor.md) ^0.3.3
- [karma-phantomjs-launcher](https://npm.io/package/karma-phantomjs-launcher.md) ^0.2.3
- [karma-ios-simulator-launcher](https://npm.io/package/karma-ios-simulator-launcher.md) 0.0.4

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2016-09-13

## README

#Unit-Kit

## 功能
- 减少环境问题麻烦，将单元测试复杂的环境配置全部封装进去，安装即用
- 支持 **Vue**，**React** 项目
- 方便推行单元测试，统一断言库，方便沟通，减少学习成本

## 使用
```
const UnitKit = require('@ali/unit-kit')
const path = require('path')

const unit = new UnitKit({
  workDir: path.resolve(__dirname, '../'),
  testDir: path.resolve(__dirname, '../test/'),
  webpackCfg: path.resolve(__dirname, '../webpack.base.config.js')
  // webpackCfg: ''
})

unit.start()

```

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