# vite-test

> vite-test

Latest version **0.4.0** (published 2021-01-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install vite-test
pnpm add vite-test
yarn add vite-test
bun add vite-test
```

Provides the command `vite-test`.

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2021-01-30 |
| First published | 2020-12-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 2.2 KB |
| Known vulnerabilities | 0 (+15 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Ziga Vidic |
| Maintainers | zigomir |
| Keywords | vite, test |

## Links

- npm: https://www.npmjs.com/package/vite-test
- Repository: https://github.com/zigomir/vite-test
- Issues: https://github.com/zigomir/vite-test/issues
- npm.io page: https://npm.io/package/vite-test

## Dependencies (3)

- [vite](https://npm.io/package/vite.md) ^2.0.0-beta.59
- [zora](https://npm.io/package/zora.md) ^4.0.2
- [puppeteer](https://npm.io/package/puppeteer.md) ^5.5.0

## 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.4.0 (latest) — 2021-01-30
- 0.3.0 — 2021-01-03
- 0.2.0 — 2020-12-05
- 0.1.0 — 2020-12-03

## README

# vite-test

> use `vite` to test your vue app in real browser and/or `puppeteer`

## benefits

- very quick execution
- native environment compared to `jest` & `js-dom`

## usage

sample `package.json` scripts:

```json
"scripts": {
  "test:debug": "vite-test --debug",
  "test": "vite-test | tap-dot"
}
```

- `vite-test --debug` to keep vite server open on `http://localhost:3000` to debug your test in browser dev tools directly, e.g. on `http://localhost:3000/test.html`
- `vite-test | tap-dot` CI friendly exit code by tap-dot library (`npm install tap-dot`)

Also see `/test` directory

### terminal / CI
`vite-test` will run your tests in `puppeteer`

### browser through vite

Open http://localhost:3000/test.html when running `vite` dev server and open your dev tools

## dependencies

- [@vue/test-utils](https://github.com/vuejs/vue-test-utils-next) – version 2+ which supports Vue 3
- [puppeteer](https://pptr.dev) to run tests on your CI
- [zora test runner](https://github.com/lorenzofox3/zora)

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