From a48dd8b84b16af1506c22d89a326e434576df5ee Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Tue, 24 Aug 2021 15:57:45 +0200 Subject: [PATCH] docs(test-runner): add frontmatter to custom TS page (#8398) --- docs/src/test-typescript-js.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/src/test-typescript-js.md b/docs/src/test-typescript-js.md index f81b27cea3..c4e8790492 100644 --- a/docs/src/test-typescript-js.md +++ b/docs/src/test-typescript-js.md @@ -1,3 +1,8 @@ +--- +id: test-typescript +title: "Advanced: TypeScript" +--- + ## Manually compile tests with TypeScript 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, you can perform your own TypeScript compilation before sending the tests to Playwright. First I add a `tsconfig.json` file inside my tests directory. + ```json { "compilerOptions": { @@ -20,6 +26,7 @@ First I add a `tsconfig.json` file inside my tests directory. ``` In my `package.json`, I have two scripts: + ```json { "scripts": {