forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 2
/
example_integration.test.ts
29 lines (25 loc) · 986 Bytes
/
example_integration.test.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
* 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.
*/
import * as kbnTestServer from '../../../../src/test_utils/kbn_server';
import { TestKbnServerConfig } from '../../kbn_server_config';
describe('example integration test with kbn server', async () => {
let servers: any = null;
beforeAll(async () => {
servers = await kbnTestServer.startTestServers({
adjustTimeout: (t: number) => jest.setTimeout(t),
settings: TestKbnServerConfig,
});
expect(servers).toBeDefined();
});
afterAll(async () => {
await servers.stop();
});
it('should have started new platform server correctly', () => {
expect(servers.kbnServer).toBeDefined();
expect(servers.kbnServer.server).toBeDefined();
expect(servers.kbnServer.server.plugins).toBeDefined();
});
});