From e60d995e9bace5c095e71d1197bce5799244ffc3 Mon Sep 17 00:00:00 2001 From: John Yeates Date: Fri, 28 Jul 2023 20:53:05 +0100 Subject: [PATCH] docs: Add `files` to list of ways to include global.d.ts (#24484) --- docs/src/test-configuration-js.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/test-configuration-js.md b/docs/src/test-configuration-js.md index 73ab6addd0..50a47245c7 100644 --- a/docs/src/test-configuration-js.md +++ b/docs/src/test-configuration-js.md @@ -215,7 +215,7 @@ test('numeric ranges', () => { Do not confuse Playwright's `expect` with the [`expect` library](https://jestjs.io/docs/expect). The latter is not fully integrated with Playwright test runner, so make sure to use Playwright's own `expect`. ::: -For TypeScript, also add the following to your [`global.d.ts`](https://www.typescriptlang.org/docs/handbook/declaration-files/templates/global-d-ts.html). If it does not exist, you need to create it inside your repository. Make sure that your `global.d.ts` gets included inside your `tsconfig.json` via the `include` or `compilerOptions.typeRoots` option so that your IDE will pick it up. +For TypeScript, also add the following to your [`global.d.ts`](https://www.typescriptlang.org/docs/handbook/declaration-files/templates/global-d-ts.html). If it does not exist, you need to create it inside your repository. Make sure that your `global.d.ts` gets included inside your `tsconfig.json` via the `files`, `include` or `compilerOptions.typeRoots` option so that your IDE will pick it up. You don't need it for JavaScript.