Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s committed Oct 17, 2024
1 parent 4ac8787 commit 0c8b994
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
5 changes: 0 additions & 5 deletions docs/src/test-reporter-api/class-testerror.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ Call log.

Error message. Set when [Error] (or its subclass) has been thrown.

## property: TestError.message
* since: v1.10
- type: ?<[string]>

Error message. Set when [Error] (or its subclass) has been thrown.
## property: TestError.shortMessage
* since: v1.49
- type: ?<[string]>
Expand Down
1 change: 1 addition & 0 deletions packages/playwright/types/testReporter.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ export interface JSONReportTest {
export interface JSONReportError {
message: string;
location?: Location;

actual?: any;
expected?: any;
log?: Array<string>;
Expand Down
2 changes: 1 addition & 1 deletion tests/playwright-test/reporter-errors.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ test('should report matcherResults for generic matchers', async ({ runInlineTest
expect(result.exitCode).toBe(1);

const { errors } = result.report.suites[0].specs[0].tests[0].results[0];
expect( errors).toEqual([
expect(errors).toEqual([
{ expected: 2, actual: 1 },
{ },
{ },
Expand Down

0 comments on commit 0c8b994

Please sign in to comment.