mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 14:11:50 +03:00
8611ee8df7
This lets our spec files be .ts instead of just .js. The typescript files will be checked against the public types. Tests are compiled with babel just in time before running them, emulating the jest experience. TypeScript tests are also linted with eslint. I converted keyboard.spec.js as the first demo. I'll follow up converting some more more tests.
12 lines
313 B
JSON
12 lines
313 B
JSON
{
|
|
"compilerOptions": {
|
|
"allowJs": true,
|
|
"checkJs": false,
|
|
"noEmit": true,
|
|
"moduleResolution": "node",
|
|
"target": "ESNext",
|
|
"strictNullChecks": false,
|
|
"allowSyntheticDefaultImports": true,
|
|
},
|
|
"include": ["*.spec.js", "types.d.ts", "*.spec.ts"]
|
|
} |