@bigbinary/neeto-playwright-reporter 1.6.7 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -1,6 +1,20 @@
1
1
  import { Bar } from 'cli-progress';
2
2
  import { ReporterOptionParams } from 'types';
3
3
  import { Reporter, FullConfig, Suite, TestCase, TestResult, FullResult } from '@playwright/test/reporter';
4
+ import * as _playwright_test from '@playwright/test';
5
+
6
+ interface LighthouseReportMetadata {
7
+ formats: {
8
+ html: true;
9
+ };
10
+ name: string;
11
+ directory: string;
12
+ pathToLightHouseHTMLReport: string;
13
+ }
14
+ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArgs & _playwright_test.PlaywrightTestOptions & {
15
+ attachLighthouseReport: (pathToLightHouseHTMLReport: string) => Promise<void>;
16
+ generateLighthouseMetaData: () => LighthouseReportMetadata;
17
+ }, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions>;
4
18
 
5
19
  declare class NeetoPlaywrightReporter implements Reporter {
6
20
  attempts: Record<string, Record<string, string>> | Record<string, never>;
@@ -26,4 +40,4 @@ declare class NeetoPlaywrightReporter implements Reporter {
26
40
  onStdOut(chunk: string | Buffer, test: void | TestCase): void;
27
41
  }
28
42
 
29
- export { NeetoPlaywrightReporter as default };
43
+ export { NeetoPlaywrightReporter as default, test };