Skip to content

Reporter options

The full option set for @nijam/pw-reporter, passed as the second element of the reporter tuple in playwright.config.ts. For guided setup, see Configuration. The pytest and Vitest reporters expose the same options under their own naming.

OptionTypeRequiredDefaultDescription
apiKeystringyes-API key from the Nijam dashboard. Store as a CI secret.
projectIdstringyes-Project ID (UUID) from the dashboard.
apiUrlstringnohttps://api.nijam.devAPI base URL. Defaults to the hosted Nijam API - you don’t normally need to set this.
environmentstringno-Free-form deploy tag (e.g. "staging"). Adds a dashboard filter; omitted runs show Unset.
uploadSourcebooleannotrueUpload spec source for inline rendering. false to opt out.
silentbooleannofalseSuppress all [nijam] log lines.
interface NijamReporterOptions {
apiKey: string;
projectId: string;
apiUrl?: string; // default: https://api.nijam.dev
environment?: string;
uploadSource?: boolean; // default: true
silent?: boolean; // default: false
}

The pytest and Vitest reporters take the same options as Playwright - only the naming and where you set them differ.

Playwright optionpytest ini optionVitest constructor option
apiKeynijam_api_keyapiKey
projectIdnijam_project_idprojectId
apiUrlnijam_api_urlapiUrl
environmentnijam_environmentenvironment
uploadSourcenijam_upload_sourceuploadSource
silentnijam_silentsilent
-nijam_auto_completeautoComplete
  • pytest - set ini options in pytest.ini / [tool.pytest.ini_options]; NIJAM_API_KEY can also come from the environment. The plugin auto-loads, so there’s no code to write.
  • Vitest - pass options to new NijamReporter({ … }) in vitest.config.ts. Vitest also needs test.includeTaskLocation: true so the reporter can capture the failing line.
BehaviorValue
Failure modeFail-soft - logs a [nijam] warning, never throws, never blocks CI.
Peer dependency@playwright/test >= 1.40.0 (Playwright-specific)
Node engine>= 18 (Playwright/Vitest reporters)
Test source max size256 KB (larger files skipped)
Upload concurrency4 (source and traces each)
Traces uploaded forfailed / timed-out tests only
LicenseMIT