Allure Fetch is an integration library for Allure reporting framework that instruments the Fetch API to capture HTTP request/response data and attach it to Allure test reports. Current stable version is 3.9.0, with monthly releases. It is part of the Allure JS ecosystem and provides seamless integration for test frameworks using Fetch (e.g., Playwright, Cypress). Key differentiator: automatic recording of network interactions without manual interception, supporting both Node.js and browser environments.
npm install allure-fetchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to instantiate AllureFetch with an AllureRuntime, record HTTP requests via Fetch, and attach them to Allure reports.
Call .stop() or use runWithRecording callback to ensure flush.
Update instantiation: `new AllureFetch(runtime, { request: true, response: true })`.Call .clear() before each test to reset the recorder.
Ensure you call .stop() before initializing a new recording.
Use `import { AllureFetch } from 'allure-fetch'` (curly braces).