kibana/x-pack/plugins/apm
Mikhail Shustov 5fc7addac5
Update jest to v24 (#31825)
* 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
2019-02-28 13:26:16 +01:00
..
common [APM] Move Http and DB context elements up in Span flyout (#31057) 2019-02-15 23:30:12 -08:00
public Update jest to v24 (#31825) 2019-02-28 13:26:16 +01:00
server Update jest to v24 (#31825) 2019-02-28 13:26:16 +01:00
typings [APM] Improve license check (#31923) 2019-02-26 17:09:34 +01:00
.prettierrc
index.js [APM] Render related errors link in transaction flyout (#29807) 2019-02-07 23:17:02 -08:00
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