Fixes a needed import that was coming from APM but now isolates things better for optimization import builds

## Summary

Adds a single line to work with ts config optimizers. What is happening is that this is relying on an import from here:

```
x-pack/legacy/plugins/apm/public/utils/testHelpers.tsx
```

when really it should be isolated and imported within this file.

Testing is just to go to siem and run these commands:

```ts
cd /projects/kibana
node x-pack/legacy/plugins/siem/scripts/optimize_tsconfig.js
node scripts/type_check.js --project x-pack/tsconfig.json
```

Ensure you don't see any errors.
This commit is contained in:
Frank Hassanabad 2020-04-09 13:52:02 -06:00 committed by GitHub
parent 783e3c17a9
commit 834306458a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,7 @@ import { HealthCheck } from './health_check';
import { act } from 'react-dom/test-utils';
import { httpServiceMock } from '../../../../../../src/core/public/mocks';
import '@testing-library/jest-dom/extend-expect';
const docLinks = { ELASTIC_WEBSITE_URL: 'elastic.co/', DOC_LINK_VERSION: 'current' };