mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-28 16:32:28 +00:00
16 lines
461 B
TypeScript
16 lines
461 B
TypeScript
import { test as base, expect } from "@playwright/test";
|
|
import { attachCoverageAndConsoleCapture } from "./playwrightCoverageInstrumentation";
|
|
|
|
export const test = base.extend({
|
|
_coverageAndConsoleCapture: [
|
|
async ({ page, browserName }, use, testInfo) => {
|
|
const stopCapture = await attachCoverageAndConsoleCapture(page, testInfo, browserName);
|
|
await use();
|
|
await stopCapture();
|
|
},
|
|
{ auto: true },
|
|
],
|
|
});
|
|
|
|
export { expect };
|