
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@remcovaes/web-test-runner-vite-plugin
Advanced tools
@web/test-runner plugin to allow the build to be done by Vite
A @web/test-runner plugin that allows files to be built with Vite instead of @web/dev-server. Inspired by vite-web-test-runner.
npm install @remcovaes/web-test-runner-vite-plugin --save-dev
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() ],
}),
],
};
FAQs
@web/test-runner plugin to allow the build to be done by Vite
The npm package @remcovaes/web-test-runner-vite-plugin receives a total of 11,971 weekly downloads. As such, @remcovaes/web-test-runner-vite-plugin popularity was classified as popular.
We found that @remcovaes/web-test-runner-vite-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.