Skip to content

Commit 9c2d05d

Browse files
committed
docs(website): corrected a code snippet. Thanks @raducybersec
1 parent dbc1939 commit 9c2d05d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/docs/handbook/getting-started/serenity-js-with-playwright-test.mdx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,10 @@ Learn more about [Serenity/JS architecture](/handbook/getting-started/architectu
6363
To enable [Serenity/JS reporting services](/handbook/reporting/), configure Playwright Test as follows:
6464

6565
```typescript title="playwright.config.ts"
66-
import type { PlaywrightTestConfig } from '@playwright/test'
66+
import { defineConfig, devices } from '@playwright/test'
67+
import type { SerenityOptions } from '@serenity-js/playwright-test'
6768

68-
const config: PlaywrightTestConfig = {
69+
export default defineConfig<SerenityOptions>({
6970
reporter: [
7071
// Serenity/JS reporting services
7172
[ '@serenity-js/playwright-test', {
@@ -93,9 +94,7 @@ const config: PlaywrightTestConfig = {
9394
},
9495

9596
// Other Playwright Test configuration options
96-
}
97-
98-
export default config
97+
});
9998
```
10099

101100
Learn more about:

0 commit comments

Comments
 (0)