playwright/tsconfig.json

43 строки
1.2 KiB
JSON
Исходник Обычный вид История

2019-11-19 05:18:28 +03:00
{
"compilerOptions": {
"target": "ES2019",
2019-11-19 05:18:28 +03:00
"module": "commonjs",
"lib": ["esnext", "dom", "DOM.Iterable"],
2021-10-11 17:52:17 +03:00
"baseUrl": ".",
"paths": {
/*
The following two serve different purposes:
- @foo is for importing types only,
- foo/lib means require dependency
*/
"@html-reporter/*": ["./packages/html-reporter/src/*"],
"@protocol/*": ["./packages/protocol/src/*"],
"@recorder/*": ["./packages/recorder/src/*"],
"@trace/*": ["./packages/trace/src/*"],
"playwright-core/lib/*": ["./packages/playwright-core/src/*"]
2021-10-11 17:52:17 +03:00
},
"esModuleInterop": true,
"strict": true,
chore: roll stable-test-runner to 1.28.1 (#19310) This required `allowJs: false` in our `tsconfig.json` due to the following error: ``` Error: Cannot find module './utilsBundleImpl' Require stack: - <playwright>/packages/playwright-core/src/utilsBundle.ts - <playwright>/packages/playwright-test/lib/reporters/html.js - <playwright>/tests/playwright-test/reporter-html.spec.ts - <playwright>/tests/playwright-test/stable-test-runner/node_modules/@playwright/test/lib/loader.js - <playwright>/tests/playwright-test/stable-test-runner/node_modules/@playwright/test/lib/runner.js - <playwright>/tests/playwright-test/stable-test-runner/node_modules/@playwright/test/lib/cli.js - <playwright>/tests/playwright-test/stable-test-runner/node_modules/playwright-core/lib/cli/cli.js - <playwright>/tests/playwright-test/stable-test-runner/node_modules/playwright-core/cli.js - <playwright>/tests/playwright-test/stable-test-runner/node_modules/@playwright/test/cli.js at ../../packages/playwright-core/src/utilsBundle.ts:20 18 | import path from 'path'; 19 | > 20 | export const colors: typeof import('../bundles/utils/node_modules/colors/safe') = require('./utilsBundleImpl').colors; | ^ 21 | export const debug: typeof import('../bundles/utils/node_modules/@types/debug') = require('./utilsBundleImpl').debug; 22 | export const getProxyForUrl: typeof import('../bundles/utils/node_modules/@types/proxy-from-env').getProxyForUrl = require('./utilsBundleImpl').getProxyForUrl; 23 | export const HttpsProxyAgent: typeof import('../bundles/utils/node_modules/https-proxy-agent').HttpsProxyAgent = require('./utilsBundleImpl').HttpsProxyAgent; at Object.<anonymous> (<playwright>/packages/playwright-core/src/utilsBundle.ts:20:83) at Object.<anonymous> (<playwright>/packages/playwright-test/src/reporters/html.ts:17:1) ```
2022-12-07 02:46:19 +03:00
"allowJs": false,
2021-02-13 05:53:46 +03:00
"jsx": "react",
"resolveJsonModule": true,
"noEmit": true,
"noImplicitOverride": true,
"useUnknownInCatchVariables": false,
2019-11-19 05:18:28 +03:00
},
"compileOnSave": true,
2021-10-11 17:52:17 +03:00
"include": ["packages"],
"exclude": [
"packages/*/lib",
"packages/html-reporter",
2022-04-27 02:15:08 +03:00
"packages/playwright-ct-react",
2022-08-24 00:08:53 +03:00
"packages/playwright-ct-solid",
2022-04-27 02:15:08 +03:00
"packages/playwright-ct-svelte",
"packages/playwright-ct-vue",
"packages/playwright-ct-vue2",
"packages/recorder",
"packages/trace-viewer",
"packages/web",
],
2019-11-19 05:18:28 +03:00
}