vite-web-test-runner-plugin

0.1.0 • Public • Published

maintained license npm package


vite-web-test-runner-plugin

A @web/test-runner plugin to test Vite-powered projects. This plugin automatically connects to the Vite project in the current directory, loads the project configuration, and the uses your already-configured Vite build pipeline to build each test file.

Usage

npm install vite-web-test-runner-plugin --save-dev
// web-test-runner.config.js
const vite = require("vite-web-test-runner-plugin");

module.exports = {
  plugins: [vite()],
};

Options

None! If you need to configure Vite, you can do so in your project vite.config.js file.

Notes

  • some frameworks might require a custom testRunnerHtml (eg svelte and react)
  • vue is currently defunct

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    121
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    121
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i vite-web-test-runner-plugin

Weekly Downloads

121

Version

0.1.0

License

MIT

Unpacked Size

4.02 kB

Total Files

4

Last publish

Collaborators

  • material-svelte-bot