Snowpack
Press ⌘ and K to search
v2.17.1
  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. New Project
    3. React
    4. Svelte
  3. Guides
  4. Reference
    1. snowpack.config.js
    2. Command Line API
    3. JavaScript API
    4. Plugin API
    5. HMR API
    6. Supported Files
    7. Common Errors
  5. Plugin Catalog
  6. Community & News

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

On this page


Suggest a change

Edit this page on GitHub