From 9711e628824be07cac41682084ea6f1a875d2cbc Mon Sep 17 00:00:00 2001 From: Tuomo Raitila Date: Sat, 4 Jun 2022 00:26:16 +0300 Subject: [PATCH] Fix typo (#14633) --- docs/src/test-typescript-js.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/test-typescript-js.md b/docs/src/test-typescript-js.md index 888392c30d..6c5738e145 100644 --- a/docs/src/test-typescript-js.md +++ b/docs/src/test-typescript-js.md @@ -7,7 +7,7 @@ Playwright Test supports TypeScript out of the box. You just write tests in Type ## TypeScript with CommonJS -[Node.js](https://nodejs.org/en/) works with CommonJS modules **by default**. Unless you use `'.mjs'` or `'.mts'` extensions, or specify `type: "module"` in your `pacakge.json`, Playwright Test will treat all TypeScript files as CommonJS. You can then import as usual without an extension. +[Node.js](https://nodejs.org/en/) works with CommonJS modules **by default**. Unless you use `'.mjs'` or `'.mts'` extensions, or specify `type: "module"` in your `package.json`, Playwright Test will treat all TypeScript files as CommonJS. You can then import as usual without an extension. Consider this helper module written in TypeScript: