/vue-unit

Unit Test for Vue -- 搭建 Vue 3.x + Vite 4.x 单元测试环境(包含覆盖率测试)

Primary LanguageJavaScriptMIT LicenseMIT

vue-unit

Deploy GitHub Workflow Status (branch) jest codecov 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

pnpm install

Run

Local Development

pnpm dev

Test

Unit Testing

pnpm test

Test code coverage

pnpm test:coverage

😎 Awesome