[APM] Fix docs link and mock ui/metadata (#18857)

This commit is contained in:
Søren Louv-Jansen 2018-05-07 16:22:54 +02:00 committed by GitHub
parent f93b6ea0fc
commit 8627dbad14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 3 deletions

View file

@ -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`

View 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',
};

View file

@ -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"
>

View file

@ -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"
>

View file

@ -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';
//