Skip to content

Commit

Permalink
Fix jest issue
Browse files Browse the repository at this point in the history
  • Loading branch information
CoenWarmer committed Feb 23, 2024
1 parent 1293341 commit 173d524
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const SYSTEMPATH = 'systemPath';

const testMap = [
['x-pack/plugins/observability_solution/observability/foo/bar/baz/header_actions.tsx', 'o11y'],
['x-pack/plugins/observability_solution/apm/baz/header_actions.tsx', 'apm'],
['x-pack/plugins/apm/public/components/app/correlations/correlations_table.tsx', 'apm'],
['x-pack/plugins/cases/public/components/foo.tsx', 'cases'],
['packages/kbn-alerts-ui-shared/src/alert_lifecycle_status_badge/index.tsx', 'kbnAlertsUiShared'],
Expand Down
3 changes: 3 additions & 0 deletions packages/kbn-eslint-plugin-telemetry/helpers/get_app_name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ export function getAppName(fileName: string, cwd: string) {
if (!relativePathArray[1]) return '';

if (relativePathArray[1] === 'x-pack') {
if (relativePathArray[3] === 'observability_solution') {
return relativePathArray[4];
}
return relativePathArray[3];
}

Expand Down

0 comments on commit 173d524

Please sign in to comment.