kibana/x-pack/plugins/observability
Nathan L Smith d3ddcd2027
[APM] APM & Observability plugin lint improvements (#72702)
* [APM] APM & Observability plugin lint improvements

This is a large change, but most of it is automatic `eslint --fix` changes.

* Apply the same ESLint ovderrides in APM and Observability plugins.
* Remove the `no-unused-vars` rule. We can turn on the TypeScript check if needed.
* Check both JS and TS files.
* Add a rule for react function component definitions
* Upgrade eslint-plugin-react to include that rule
2020-07-27 08:18:36 -05:00
..
common [APM] Annotations API (#64796) 2020-05-05 19:49:39 +02:00
public [APM] APM & Observability plugin lint improvements (#72702) 2020-07-27 08:18:36 -05:00
scripts Observability overview page (#69141) 2020-07-08 21:52:16 +02:00
server Move and rename legacy elasticsearch client (#69797) 2020-06-29 17:43:31 +02:00
typings [Observability] Create context container to enable Observability plugin registry function (#68642) 2020-06-15 08:46:36 +02:00
jest.config.js Add Jest configuration and README to observability plugin (#70340) 2020-06-30 14:03:05 -05:00
kibana.json [kbn/optimizer] implement "requiredBundles" property of KP plugins (#70911) 2020-07-09 18:43:17 -07:00
README.md Add Jest configuration and README to observability plugin (#70340) 2020-06-30 14:03:05 -05:00

Observability plugin

This plugin provides shared components and services for use across observability solutions, as well as the observability landing page UI.

Unit testing

Note: Run the following commands from kibana/x-pack/plugins/observability.

Run unit tests

npx jest --watch

Update snapshots

npx jest --updateSnapshot

Coverage

HTML coverage report can be found in target/coverage/jest after tests have run.

open target/coverage/jest/index.html