Skip to content

Commit 779ab6b

Browse files
committed
Use existing fake mocha types
1 parent 4342dd6 commit 779ab6b

File tree

3 files changed

+8
-37
lines changed

3 files changed

+8
-37
lines changed

packages/kbn-test/src/functional_test_runner/fake_mocha_types.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,17 @@ import EventEmitter from 'events';
2828
export interface Suite {
2929
suites: Suite[];
3030
tests: Test[];
31+
title: string;
32+
file?: string;
33+
parent?: Suite;
3134
}
3235

3336
export interface Test {
3437
fullTitle(): string;
38+
title: string;
39+
file?: string;
40+
parent?: Suite;
41+
isPassed: () => boolean;
3542
}
3643

3744
export interface Runner extends EventEmitter {

packages/kbn-test/src/functional_test_runner/lib/snapshots/decorate_snapshot_ui.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import prettier from 'prettier';
2929
import babelTraverse from '@babel/traverse';
3030
import { flatten, once } from 'lodash';
3131
import { Lifecycle } from 'packages/kbn-test/types/ftr';
32-
import { Suite, Test } from './mocha_types';
32+
import { Mocha, Suite, Test } from '../../fake_mocha_types';
3333

3434
type ISnapshotState = InstanceType<typeof SnapshotState>;
3535

packages/kbn-test/src/functional_test_runner/lib/snapshots/mocha_types.ts

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)