Fix typo (#14633)
This commit is contained in:
parent
e69c3f12e6
commit
9711e62882
|
|
@ -7,7 +7,7 @@ Playwright Test supports TypeScript out of the box. You just write tests in Type
|
||||||
|
|
||||||
## TypeScript with CommonJS
|
## 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:
|
Consider this helper module written in TypeScript:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue