Skip to content

Commit

Permalink
chore(html): remove unused map
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s committed Aug 10, 2023
1 parent cd01ea7 commit f56b686
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/playwright-test/src/reporters/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ export function startHtmlReportServer(folder: string): HttpServer {
class HtmlBuilder {
private _config: FullConfig;
private _reportFolder: string;
private _testPath = new Map<string, string[]>();
private _stepsInFile = new MultiMap<string, TestStep>();
private _dataZipFile: ZipFile;
private _hasTraces = false;
Expand Down Expand Up @@ -323,8 +322,7 @@ class HtmlBuilder {
private _createTestEntry(test: TestCasePublic, projectName: string, reportName: string | undefined, path: string[]): TestEntry {
const duration = test.results.reduce((a, r) => a + r.duration, 0);
const location = this._relativeLocation(test.location)!;
path = [...path.slice(1)];
this._testPath.set(test.id, path);
path = path.slice(1);

const results = test.results.map(r => this._createTestResult(test, r));

Expand Down

0 comments on commit f56b686

Please sign in to comment.