diff --git a/packages/playwright/src/reporters/junit.ts b/packages/playwright/src/reporters/junit.ts index 333cb7cfd1..99e3fe6ba1 100644 --- a/packages/playwright/src/reporters/junit.ts +++ b/packages/playwright/src/reporters/junit.ts @@ -17,7 +17,6 @@ import fs from 'fs'; import path from 'path'; import type { FullConfig, FullResult, Suite, TestCase } from '../../types/testReporter'; -import { monotonicTime } from 'playwright-core/lib/utils'; import { formatFailure, stripAnsiEscapes } from './base'; import EmptyReporter from './empty'; diff --git a/tests/playwright-test/reporter-junit.spec.ts b/tests/playwright-test/reporter-junit.spec.ts index cc714115fa..644db548b7 100644 --- a/tests/playwright-test/reporter-junit.spec.ts +++ b/tests/playwright-test/reporter-junit.spec.ts @@ -518,7 +518,7 @@ for (const useIntermediateMergeReport of [false, true] as const) { }, { reporter: 'junit' }); const xml = parseXML(result.output); const time = +xml['testsuites']['$']['time']; - expect(time).toBe(result.report.stats.duration/1000); + expect(time).toBe(result.report.stats.duration / 1000); expect(time).toBeGreaterThan(1); }); });