Skip to content

Commit

Permalink
export types correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenkilbourn committed Oct 27, 2022
1 parent 094d02b commit 75ca31b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "@skilbourn/playwright-report-summary",
"version": "1.0.4",
"version": "1.0.8",
"description": "generate a customizable text summary of your playwright test results",
"main": "dist/src/index.js",
"types": "dist/src/types.d.ts",
"main": "./dist/index.js",
"types": "./dist/types.d.ts",
"files": [
"/dist/src"
"/dist"
],
"scripts": {
"build": "tsc -p ./tsconfig.json",
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as fs from 'fs';
import * as path from 'path';

import { Reporter, TestCase, TestResult } from '@playwright/test/reporter';
import type { Stats } from './types';
import type { Stats, InputTemplate, OutputFile } from './types';
import millisToMinuteSeconds from './utils';
import DefaultReport from './defaultReport';

Expand All @@ -25,13 +25,13 @@ const initialStats = (): Stats => ({
});

class PlaywrightReportSummary implements Reporter {
private outputFile: string;
outputFile: OutputFile;

private startTime: number;

private endTime: number;

private inputTemplate: () => string;
inputTemplate: InputTemplate;

stats: Stats;

Expand Down
4 changes: 4 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ export type Stats = {
failures: object;
workers: number;
};

export type OutputFile = string;

export type InputTemplate = () => string;

0 comments on commit 75ca31b

Please sign in to comment.