Skip to content

JessicaSachs/vite-component-test-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

27 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 /tests?spec=HelloWorld.spec.js,App.spec.js
  3. Full customization of runner and plugins provided by aria-vue

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 headless to run your test in headless
  4. npm run tdd to run in tdd mode
  5. npm run tdd:vite to run in tdd mode using vite

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 πŸ‘©πŸ»β€πŸ”¬

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published