mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[APM] Fix docs link and mock ui/metadata (#18857)
This commit is contained in:
parent
f93b6ea0fc
commit
8627dbad14
5 changed files with 14 additions and 3 deletions
|
@ -18,6 +18,7 @@ export function createJestConfig({
|
|||
"json"
|
||||
],
|
||||
moduleNameMapper: {
|
||||
"^ui/(.*)": `${kibanaDirectory}/src/ui/public/$1`,
|
||||
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
|
||||
`${kibanaDirectory}/src/dev/jest/mocks/file_mock.js`,
|
||||
"\\.(css|less|scss)$": `${kibanaDirectory}/src/dev/jest/mocks/style_mock.js`
|
||||
|
|
9
x-pack/plugins/__mocks__/ui/metadata.js
Normal file
9
x-pack/plugins/__mocks__/ui/metadata.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License;
|
||||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
export const metadata = {
|
||||
branch: 'my-metadata-branch',
|
||||
};
|
|
@ -111,7 +111,7 @@ exports[`ErrorGroupOverview -> List should render empty state 1`] = `
|
|||
Oops! You should try another time range. If that's no good, there's always the
|
||||
<a
|
||||
className="euiLink euiLink--primary"
|
||||
href="https://www.elastic.co/guide/en/apm/get-started/6.2/index.html"
|
||||
href="https://www.elastic.co/guide/en/apm/get-started/my-metadata-branch/index.html"
|
||||
rel="noopener noreferrer"
|
||||
target="_blank"
|
||||
>
|
||||
|
|
|
@ -111,7 +111,7 @@ exports[`ErrorGroupOverview -> List should render empty state 1`] = `
|
|||
Oops! You should try another time range. If that's no good, there's always the
|
||||
<a
|
||||
className="euiLink euiLink--primary"
|
||||
href="https://www.elastic.co/guide/en/apm/get-started/6.2/index.html"
|
||||
href="https://www.elastic.co/guide/en/apm/get-started/my-metadata-branch/index.html"
|
||||
rel="noopener noreferrer"
|
||||
target="_blank"
|
||||
>
|
||||
|
|
|
@ -5,8 +5,9 @@
|
|||
*/
|
||||
|
||||
import { get } from 'lodash';
|
||||
import { metadata } from 'ui/metadata';
|
||||
|
||||
const STACK_VERSION = '6.2';
|
||||
const STACK_VERSION = metadata.branch;
|
||||
const DOCS_ROOT = 'https://www.elastic.co/guide/en/apm';
|
||||
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue