Snowpack
Press ⌘ and K to search
v3.5.6
  1. Concepts
    1. How Snowpack Works
    2. The Dev Server
    3. The Build Pipeline
    4. Fast Refresh & HMR
  2. Getting Started
    1. Quick Start
    2. Getting Started
    3. React
    4. Svelte
    5. Vue
  3. Guides
  4. Reference
    1. snowpack.config.js
    2. Command Line API
    3. JavaScript API
    4. Plugin API
    5. Environment Variables
    6. HMR API
    7. Supported Files
    8. Common Errors
  5. Plugin Catalog
  6. Community & News

Suggest a change

Edit this page on GitHub

@web/test-runner

@web/test-runner is our recommended test runner for Snowpack projects. Read more about why we recommend @web/test-runner in our Snowpack Testing Guide.

To use @web/test-runner in your project, follow the instructions here and make sure that you add the Snowpack plugin to your config file:

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

See an example setup in one of our Create Snowpack App starter templates.