Show Menu
Modern Web
Guides
Docs
Blog
Toggle darkmode
GitHub
GitHub
Modern Web
Test Runner
Overview
Installation
Basic commands
Guide
Example projects
CLI and Configuration
CLI flags
esbuild target
Configuration file
Test runner HTML
Test groups
Examples
Writing Tests
JS Tests
HTML Tests
Helper Libraries
General libraries
Assertions
Chai plugins
Testing helpers
Mocking
Code Coverage
Ignoring uncovered lines
Coverage browser support
Mocking
Mocking functions
Mocking es modules
Test Frameworks
Mocha
Writing JS tests
Writing HTML tests
Configuring mocha options
Write Your Own
Browser Launchers
Overview
Puppeteer
Playwright
Configuring browser launchers
Chrome
Usage
Concurrency
Customizing launch options
Customizing browser context and page
Puppeteer
Usage
Troubleshooting
Concurrency
Customizing launch options
Customizing browser context and page
Testing Firefox
Playwright
Usage
Testing multiple browsers
Concurrency
Customizing launch options
Customizing browser context and page
Selenium
Usage
Browserstack
Usage
Configuration
Sauce Labs
Usage
Configuration
Webdriver
Usage
Write Your Own
Commands
Usage
Built-in commands
Custom commands
Plugins
Reporters
Overview
JUnit
Configuration
Example
Write Your Own
Testing in a CI
Puppeteer
Playwright
Dev Server
Overview
Installation
Basic commands
Example projects
CLI and Configuration
CLI flags
esbuild target
Configuration file
Plugins
Overview
Esbuild
Usage
Single file transforms
Configuration
Target
Loaders
Examples
Rollup
Usage
Performance
non-standard file types
Compatibility with rollup plugins
Bundling
Import Maps
Import Maps
Installation
Basic usage
Import map options
Injecting import maps
Legacy
Usage
How it works
Configuration
Hot Module Replacement
Implementations
Installation
Basic usage
esm-hmr spec
Note about production
Use with libraries/frameworks
API
Storybook
How it works
Usage
Docs
Configuration
Production build
Writing Plugins
Overview
Examples
Typescript
Other module formats
Environment variables
Mocking or stubbing modules
Babel
JSX and TSX
Importing JSON
Importing CSS
Importing images
Hooks
Hook: serve
Hook: resolveMimeType
Hook: transform
Hook: resolveImport
Hook: transformImport
Hook: serverStart
Hook: serverStop
Koa Context
Web Sockets
Middleware
Proxying requests
Rewriting request urls
Reusing express middleware
Node API
startDevServer
Combine with your own CLI definitions
Websockets Server
Advanced
Building
Overview
Rollup Plugin HTML
Installation
Usage
Type definitions
Rollup Plugin Import Meta Assets
How it works
Install
Usage
Options
Examples
Rollup Plugin Copy
Installation
Usage
Options
Examples
Rollup Plugin Polyfills Loader
Examples
Polyfills loader
Performance
Configuration
Configuration options
polyfills
Usage
Toggle darkmode
Help and Feedback
Dev Server: Writing Plugins
Show Navigation