@snowpack/web-test-runner-plugin

0.2.2 • Public • Published

@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.

Readme

Keywords

none

Package Sidebar

Install

npm i @snowpack/web-test-runner-plugin

Weekly Downloads

402

Version

0.2.2

License

MIT

Unpacked Size

4.55 kB

Total Files

4

Last publish

Collaborators

  • fredkschott
  • drewpowers