mirror of
https://github.com/microsoft/playwright.git
synced 2025-01-08 12:28:46 +03:00
docs(reporters): wrap reporter in array, fixing typo in docs (#30686)
This commit is contained in:
parent
d1cdf6826d
commit
2d7b1480b2
@ -70,7 +70,7 @@ Now use this reporter with [`property: TestConfig.reporter`]. Learn more about [
|
|||||||
import { defineConfig } from '@playwright/test';
|
import { defineConfig } from '@playwright/test';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
reporter: ['./my-awesome-reporter.ts', { customOption: 'some value' }],
|
reporter: [['./my-awesome-reporter.ts', { customOption: 'some value' }]],
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
2
packages/playwright/types/testReporter.d.ts
vendored
2
packages/playwright/types/testReporter.d.ts
vendored
@ -88,7 +88,7 @@ export interface FullResult {
|
|||||||
* import { defineConfig } from '@playwright/test';
|
* import { defineConfig } from '@playwright/test';
|
||||||
*
|
*
|
||||||
* export default defineConfig({
|
* export default defineConfig({
|
||||||
* reporter: ['./my-awesome-reporter.ts', { customOption: 'some value' }],
|
* reporter: [['./my-awesome-reporter.ts', { customOption: 'some value' }]],
|
||||||
* });
|
* });
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user