Files
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
ffe8be12d1 chore(deps): bump ws from 8.21.0 to 8.21.1 in the dependencies group (#15240)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-20 10:27:40 +02:00
..
2024-06-18 14:41:03 +02:00
2025-10-22 15:25:15 +02:00

TestServer

This test server is used internally by Puppeteer to test Puppeteer itself.

Example

import {TestServer} from '@pptr/testserver';

const httpServer = await TestServer.create(import.meta.dirname, 8000);
const httpsServer = await TestServer.createHTTPS(import.meta.dirname, 8001);
httpServer.setRoute('/hello', (req, res) => {
  res.end('Hello, world!');
});
console.log('HTTP and HTTPS servers are running!');