Skip to content

SergiCL/vite-component-test-starter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vite Component Test Starter

⚠️ EXPERIMENTAL Starter for Vue Test Utils with Vite

@vue/test-utils integration with Vue Components served by Vite

Features

  1. Component Driven Development Workflow
  2. Running individual specs one-at-a-time with /test/index.html?spec=HelloWorld.spec.js,App.spec.js

TODO

  • Headless mode
  • In-browser Reporter
  • queueing multiple specs
  • Re-run specs on source or spec file update

Installation

  1. Clone this repository
  2. npm install
  3. npm run dev
  4. open /test/index.html in your browser

Benefits

  1. Zero configuration. Vite is zero config. Your tests can be, too.
  2. Convenience. By sharing transform middleware with Vite, you do not need to maintain two sources of truth for your code transforms (e.g. jest.config.js and a webpack.config.js)
  3. Speed. Bundling all of your specs is slower than transforming by resource request with Vite.

About

⚡️ Vite + Vue Test Utils starter 👩🏻‍🔬

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 48.2%
  • HTML 42.0%
  • Vue 9.8%