docs(reporters): fix TS example (#8531)
Co-authored-by: Max Schmitt <max@schmitt.mx>
This commit is contained in:
parent
37a897c9b4
commit
d3a8c38b7e
|
|
@ -32,7 +32,7 @@ module.exports = MyReporter;
|
||||||
```
|
```
|
||||||
|
|
||||||
```js js-flavor=ts
|
```js js-flavor=ts
|
||||||
// playwright.config.ts
|
// my-awesome-reporter.ts
|
||||||
import { Reporter } from '@playwright/test/reporter';
|
import { Reporter } from '@playwright/test/reporter';
|
||||||
|
|
||||||
class MyReporter implements Reporter {
|
class MyReporter implements Reporter {
|
||||||
|
|
|
||||||
2
types/testReporter.d.ts
vendored
2
types/testReporter.d.ts
vendored
|
|
@ -307,7 +307,7 @@ export interface FullResult {
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* ```js js-flavor=ts
|
* ```js js-flavor=ts
|
||||||
* // playwright.config.ts
|
* // my-awesome-reporter.ts
|
||||||
* import { Reporter } from '@playwright/test/reporter';
|
* import { Reporter } from '@playwright/test/reporter';
|
||||||
*
|
*
|
||||||
* class MyReporter implements Reporter {
|
* class MyReporter implements Reporter {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue