@remcovaes/web-test-runner-vite-plugin

@web/test-runner plugin to allow the build to be done by Vite
833,158 23
Install
npm install @remcovaes/web-test-runner-vite-plugin
Latest Version:1.4.1
License:MIT
Last Updated:Mar 31, 2026
Links: GitHub  ·  npm
Maintainer: remcovaes

@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. This can be done via a config file or directly passing it to the plugin. For example, to enable react support without a vite config, you can use the following config:

// web-test-runner.config.js
import { vitePlugin } from './src/index.js';

import reactRefresh from '@vitejs/plugin-react-refresh';

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

Related Packages

vite-plugin-vue2

Vite plugin for Vue2

1,474,659 618
@vue-vine/vite-plugin

Official Vite plugin for Vue Vine

95,680 1,442
vite-plugin-git-revision

Vite plugin that generates VERSION and COMMITHASH files during build based on a...

21,961 11
vite-plugin-resolve-extension-vue

A temporary workaround for issue No loader is configured for ".vue"

6,993 5
@koala/yibin-ui

宜宾大脑主题定制

4,077

Version History

Version Released License
1.4.1 MIT
1.4.0 MIT
1.3.0 MIT
1.2.2 MIT
1.2.1 MIT