@bigbinary/neeto-playwright-reporter 1.3.24 → 1.4.0

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,32 +1,24 @@
1
1
  /// <reference types="node" />
2
+ import { ReporterOptionParams } from 'types';
2
3
  import { Reporter, FullConfig, Suite, TestCase, TestResult, FullResult } from '@playwright/test/reporter';
3
4
 
4
- interface ReporterOptionParams {
5
- projectKey: string;
6
- baseURL: string;
7
- apiKey: string;
8
- ciBuildId: string;
9
- tags: string[] | string;
10
- }
11
- declare class MyReporter implements Reporter {
5
+ declare class NeetoPlaywrightReporter implements Reporter {
12
6
  attempts: Record<string, Record<string, string>>;
13
7
  ciBuildId: string;
14
8
  config: FullConfig | undefined;
15
- currentShard: number | undefined;
16
- retryAttemptStartedAt: Date;
9
+ currentShard: number;
17
10
  testResultCalls: Promise<unknown>[];
18
11
  totalTestCount: number;
19
12
  tags: string[] | string;
20
13
  unreportedAttemptCount: number;
21
14
  hasRunStarted: boolean;
22
- testAttemptIds: string[];
23
15
  heartbeatInterval: NodeJS.Timeout | null;
24
16
  rootDir: string;
25
17
  constructor(options: ReporterOptionParams);
26
18
  onBegin: (config: FullConfig, rootSuite: Suite) => Promise<void>;
27
- onTestBegin: (test: TestCase, { retry }: TestResult) => Promise<void>;
28
- onTestEnd: (testCase: TestCase, { status, duration, errors, error, retry, attachments }: TestResult) => Promise<void>;
29
- onEnd: ({ status, duration }: FullResult) => Promise<void>;
19
+ onTestBegin: (test: TestCase, result: TestResult) => Promise<void>;
20
+ onTestEnd: (testCase: TestCase, testResult: TestResult) => Promise<void>;
21
+ onEnd: (fullResult: FullResult) => Promise<void>;
30
22
  }
31
23
 
32
- export { MyReporter as default };
24
+ export { NeetoPlaywrightReporter as default };