/** * CTRF Cypress Browser Adapter * * This module runs in the Cypress browser context (loaded via support file). * It sets up the transport that routes runtime API calls to the node plugin * via cy.task(). * * ## Setup * * In your cypress/support/e2e.ts (or e2e.js): * ```ts * import 'cypress-ctrf-json-reporter/support' * * // Re-export for test files to import from the same module instance * export { ctrf } from 'cypress-ctrf-json-reporter/runtime' * ``` * * Then in test files: * ```ts * import { ctrf } from '../support/e2e' * * it('my test', () => { * ctrf.extra({ owner: 'my-team' }) * }) * ``` * * IMPORTANT: Test files must import `ctrf` from your support file's re-export, * NOT directly from the runtime module. This ensures the transport is registered * before any runtime calls are made. * * This automatically: * 1. Registers the transport for the runtime API * 2. Ensures cy.task calls are properly queued */ export {};