Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pdsuwwz/vue-unit
Unit Test for Vue -- 搭建 Vue 3.x + Vite 4.x 单元测试环境(包含覆盖率测试)
https://github.com/pdsuwwz/vue-unit
codecov coverage environment jest jest-environment-jsdom pnpm starter-template unit-testing vite vite3 vite4 vue vue3
Last synced: 3 months ago
JSON representation
Unit Test for Vue -- 搭建 Vue 3.x + Vite 4.x 单元测试环境(包含覆盖率测试)
- Host: GitHub
- URL: https://github.com/pdsuwwz/vue-unit
- Owner: pdsuwwz
- License: mit
- Created: 2021-11-23T02:06:26.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-29T21:04:23.000Z (6 months ago)
- Last Synced: 2024-08-03T18:19:41.006Z (5 months ago)
- Topics: codecov, coverage, environment, jest, jest-environment-jsdom, pnpm, starter-template, unit-testing, vite, vite3, vite4, vue, vue3
- Language: JavaScript
- Homepage:
- Size: 546 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vue-unit
[![Deploy](https://github.com/pdsuwwz/vue-unit/workflows/Unit-Testing/badge.svg)](https://github.com/pdsuwwz/vue-unit/actions/workflows/unit-testing.yml)
[![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/pdsuwwz/vue-unit/unit-testing.yml?branch=main)](https://github.com/pdsuwwz/vue-unit/deployments/activity_log)
[![jest](https://jestjs.io/img/jest-badge.svg)](https://github.com/facebook/jest)
[![codecov](https://codecov.io/gh/pdsuwwz/vue-unit/branch/main/graph/badge.svg)](https://codecov.io/gh/pdsuwwz/vue-unit)
[![License](https://img.shields.io/github/license/pdsuwwz/vite-starter?color=blue)](https://github.com/pdsuwwz/vite-starter/blob/master/LICENSE)Unit Test for Vue 3.x + Vite 4.x
> For Typescript: https://github.com/pdsuwwz/vue-unit-ts
## Environment Support
* Jest 29.x
* Vue 3.x
* Node >= 14.19.x## Install
Install node dependencies in all packages
```bash
pnpm install
```## Run
Local Development
```bash
pnpm dev
```## Test
Unit Testing
```bash
pnpm test
```Test code coverage
```bash
pnpm test:coverage
```## 😎 Awesome
* [awesome-vite](https://github.com/pdsuwwz/awesome-vite)