* udpate jest, jest-cli, @types/jest to v24 * fix type error in kibana-i18n package * return serivce explicitly to fix typings * add explicit never * suppress typings errors * update jest versions in x-pack * make tests in x-pack more robust and fix incompatibility * suppress CallCluster mock typings Mock interface doesn't match CallCluster. Requires additional work * x-pack. resolve other typing conflicts * remove unused types/jest * fix snapshots * restore mocks after jest.spyOn * remove outdated definitions for jest * cleanup x-pack package.json and update @types/jest * fix tests merged from master * updated yarn.lock and log errors for scripts/type_check * This commit fixes error in TS, which failed on parsing the file. * suppress type errors from master * jest-cli is devDep |
||
---|---|---|
.. | ||
common | ||
public | ||
server | ||
typings | ||
.prettierrc | ||
index.js | ||
mappings.json | ||
readme.md |
Documentation for APM UI
Note: Run the following commands from kibana/x-pack
.
Run tests
node scripts/jest.js plugins/apm --watch
Update snapshots
node scripts/jest.js plugins/apm --updateSnapshot
Note: Run the following commands from kibana/
.
Prettier
yarn prettier "./x-pack/plugins/apm/**/*.{tsx,ts,js}" --write
ESLint
yarn eslint ./x-pack/plugins/apm --fix
TSLint
yarn tslint ./x-pack/plugins/apm/**/*.{ts,tsx} --fix
Ensure everything from master has been backported to 6.x
git fetch origin && git checkout 6.x && git diff origin/6.x..origin/master ./plugins/apm | git apply