cherry-pick(release-1.16): Revert "chore: print global errors when running html report" (#9662)

This reverts commit 68c9fce507.

Co-authored-by: Pavel Feldman <pavel.feldman@gmail.com>
This commit is contained in:
Andrey Lushnikov 2021-10-20 13:10:07 -07:00 committed by GitHub
parent 2b62811fd6
commit 99c5df9c61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,12 +18,11 @@ import colors from 'colors/safe';
import fs from 'fs';
import open from 'open';
import path from 'path';
import { FullConfig, Suite, TestError } from '../../types/testReporter';
import { FullConfig, Suite } from '../../types/testReporter';
import { HttpServer } from 'playwright-core/src/utils/httpServer';
import { calculateSha1, removeFolders } from 'playwright-core/src/utils/utils';
import RawReporter, { JsonReport, JsonSuite, JsonTestCase, JsonTestResult, JsonTestStep, JsonAttachment } from './raw';
import assert from 'assert';
import { formatError } from './base';
export type Stats = {
total: number;
@ -141,10 +140,6 @@ class HtmlReporter {
}
}
}
onError(error: TestError) {
console.log(formatError(error, colors.enabled));
}
}
export function htmlReportFolder(outputFolder?: string): string {