Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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 单元测试环境(包含覆盖率测试)

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)