Skip to main content

Getting started

Install

Install the package

Add the reporter and Puppeteer to your test project. Puppeteer-core is a peer dependency; install it explicitly so version drift is visible in your lockfile.

npm install --save-dev @reportforge/playwright-pdf puppeteer-core

Requirements

Node 18 or later is required.

The package ships with three pre-compiled templates and a self-contained Chart.js bundle; no postinstall downloads, no Chromium pulled into node_modules. You provide a Chrome binary via PUPPETEER_EXECUTABLE_PATH or the puppeteerExecutablePath config option.