kibana/tsconfig.project.json
Mikhail Shustov b6e582c53e
TS Incremental build exclude test files (#95610)
* add base config for all the TS projects

* all the project use new tsconfig.project.json

* compile test files in the high-level tsconfig.json

* fix TS error in maps plugin

* fix TS error in infra plugin

* exclude mote test and test until folders

* uptime. do not import test code within prod code

* expressions. do not import test code within prod code

* data: export mocks from high level folder

* task_manager: comply with es client typings

* infra: remove unused enzyme_helpers

* check_ts_project requires "include" key

* ts_check should handle parent configs

* all ts configs should extend base one

* exclude test folders from plugins

* update patterns to fix ts_check errors

* Apply suggestions from code review

Co-authored-by: Constance <constancecchen@users.noreply.github.com>

* uptime: MountWithReduxProvider to test helpers

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-01 14:40:47 +02:00

66 lines
1.5 KiB
JSON

{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"composite": true,
"emitDeclarationOnly": true,
"declaration": true,
"declarationMap": true
},
"exclude": [
// tests
"**/*.test.ts",
"**/*.test.tsx",
"**/integration_tests/*",
"**/test/**/*",
"**/test/*",
"**/tests/*",
"**/tests_client_integration/*",
"**/__fixtures__/*",
"**/__stories__/*",
"**/__jest__/**",
// mocks
"**/__mocks__/*",
"**/mock/*",
"**/mocks/*",
"**/*/mock.ts",
"**/*/mocks.ts",
"**/*/mocks.tsx",
"**/*.mock.ts",
"**/*.mock.tsx",
"**/*.mocks.ts",
"**/*.mocks.tsx",
// test helpers
"**/test_helpers/*",
"**/test_utils/*",
"**/*/test_utils.ts",
"**/*/test_helper.tsx",
"**/*/test_helpers.ts",
// x-pack/plugins/ui_actions_enhanced/public/components/action_wizard/test_data.tsx
"**/*/test_data.tsx",
"**/*/shared_columns_tests.tsx",
// x-pack/plugins/uptime/server/lib/requests/helper.ts
"**/*/requests/helper.ts",
// x-pack/plugins/uptime/public/lib/helper/rtl_helpers.tsx
"**/*/rtl_helpers.tsx",
// x-pack/plugins/uptime/public/lib/helper/enzyme_helpers.tsx
"**/*/enzyme_helpers.tsx",
// x-pack/plugins/apm/server/utils/test_helpers.tsx
"**/*/test_helpers.tsx",
// x-pack/plugins/apm/public/utils/testHelpers.tsx
"**/*/testHelpers.tsx",
// stubs
"**/*/stubs.ts",
"**/*.stub.ts",
"**/*.stories.tsx",
"**/*/_mock_handler_arguments.ts"
],
"include": [],
"types": [
"node",
"flot"
]
}