Skip to content

Commit a48dd8b

Browse files
authored
docs(test-runner): add frontmatter to custom TS page (#8398)
1 parent d52250f commit a48dd8b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/src/test-typescript-js.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
id: test-typescript
3+
title: "Advanced: TypeScript"
4+
---
5+
16
## Manually compile tests with TypeScript
27

38
Playwright Test supports TypeScript out the box. We automatically transform
@@ -7,6 +12,7 @@ However if you find that the TypeScript code is not being transpiled correctly,
712
you can perform your own TypeScript compilation before sending the tests to Playwright.
813

914
First I add a `tsconfig.json` file inside my tests directory.
15+
1016
```json
1117
{
1218
"compilerOptions": {
@@ -20,6 +26,7 @@ First I add a `tsconfig.json` file inside my tests directory.
2026
```
2127

2228
In my `package.json`, I have two scripts:
29+
2330
```json
2431
{
2532
"scripts": {

0 commit comments

Comments
 (0)