naoak / web-test-runner-vite-plugin

@web/test-runner plugin to allow the build to be done by Vite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@web/dev-server Vite plugin

A @web/test-runner plugin that allows files to be built with Vite instead of @web/dev-server. Inspired by vite-web-test-runner.

Usage

npm install @remcovaes/web-test-runner-vite-plugin --save-dev

Examples

Simple and no configuration:

// web-test-runner.config.js
import { vitePlugin } from '@remcovaes/web-test-runner-vite-plugin';

export default {
	files: 'src/**/*.test.ts',
	plugins: [
		vitePlugin(),
	],
};

Use the following prop in the @web/test-runner to remove vite logging.

// web-test-runner.config.js
import { removeViteLogging } from '@remcovaes/web-test-runner-vite-plugin';

export default {
	...,
	filterBrowserLogs: removeViteLogging,
};

Use a vite config to make the build more complex, see the examples.

About

@web/test-runner plugin to allow the build to be done by Vite

License:MIT License


Languages

Language:JavaScript 67.3%Language:TypeScript 30.1%Language:Vue 2.6%