🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@snowpack/web-test-runner-plugin

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snowpack/web-test-runner-plugin

A [@web/test-runner](https://modern-web.dev/docs/test-runner/overview/) plugin to test Snowpack-powered projects. This plugin automatically connects to the Snowpack project in the current directory, loads the project configuration, and the uses your alrea

0.2.2
latest
Source
npm
Version published
Weekly downloads
326
-42.5%
Maintainers
2
Weekly downloads
 
Created
Source

@snowpack/web-test-runner-plugin

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

Usage

npm install @snowpack/web-test-runner-plugin --save-dev
// web-test-runner.config.js

// NOTE: For now, NODE_ENV needs to be set to "test" for Snowpack
// to build test files properly. We hope to remove this limitation
// in a future release.
process.env.NODE_ENV = 'test';

module.exports = {
  plugins: [require('@snowpack/web-test-runner-plugin')()],
};

Options

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

Looking for support for some missing option/configuration? Please file an isuse! Your feedback is important.

FAQs

Package last updated on 19 Mar 2021

Did you know?

Socket

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.

Install

Related posts