Skip to content

Commit

Permalink
Moves core logging service integration tests to package
Browse files Browse the repository at this point in the history
  • Loading branch information
TinaHeiligers committed Jan 30, 2023
1 parent eba8eea commit 2a78b90
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# @kbn/core-logging-integration-tests

This package contains the core logging service api-integration tests
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ module.exports = {
// to do so, we must fix all integration tests first
// see https://github.com/elastic/kibana/pull/130255/
preset: '@kbn/test/jest_integration',
rootDir: '../../../../..',
roots: ['<rootDir>/src/core/server/integration_tests/logging'],
rootDir: '../../../..',
roots: ['<rootDir>/packages/core/logging/core-logging-integration-tests'],
// must override to match all test given there is no `integration_tests` subfolder
testMatch: ['**/*.test.{js,mjs,ts,tsx}'],
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"type": "shared-common",
"id": "@kbn/core-logging-integration-tests",
"devOnly": true,
"owner": "@elastic/kibana-core"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "@kbn/core-logging-integration-tests",
"private": true,
"author": "Kibana Core",
"version": "1.0.0",
"license": "SSPL-1.0 OR Elastic License 2.0"
}
17 changes: 17 additions & 0 deletions packages/core/logging/core-logging-integration-tests/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"extends": "../../../../tsconfig.base.json",
"compilerOptions": {
"outDir": "target/types",
"types": [
"jest",
"node"
]
},
"include": [
"**/*.ts",
],
"exclude": [
"target/**/*"
],
"kbn_references": []
}
2 changes: 2 additions & 0 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,8 @@
"@kbn/core-logging-browser-mocks/*": ["packages/core/logging/core-logging-browser-mocks/*"],
"@kbn/core-logging-common-internal": ["packages/core/logging/core-logging-common-internal"],
"@kbn/core-logging-common-internal/*": ["packages/core/logging/core-logging-common-internal/*"],
"@kbn/core-logging-integration-tests": ["packages/core/logging/core-logging-integration-tests"],
"@kbn/core-logging-integration-tests/*": ["packages/core/logging/core-logging-integration-tests/*"],
"@kbn/core-logging-server": ["packages/core/logging/core-logging-server"],
"@kbn/core-logging-server/*": ["packages/core/logging/core-logging-server/*"],
"@kbn/core-logging-server-internal": ["packages/core/logging/core-logging-server-internal"],
Expand Down

0 comments on commit 2a78b90

Please sign in to comment.