Skip to content

Commit

Permalink
Use existing fake mocha types
Browse files Browse the repository at this point in the history
  • Loading branch information
dgieselaar committed Nov 11, 2020
1 parent 4342dd6 commit 779ab6b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,17 @@ import EventEmitter from 'events';
export interface Suite {
suites: Suite[];
tests: Test[];
title: string;
file?: string;
parent?: Suite;
}

export interface Test {
fullTitle(): string;
title: string;
file?: string;
parent?: Suite;
isPassed: () => boolean;
}

export interface Runner extends EventEmitter {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import prettier from 'prettier';
import babelTraverse from '@babel/traverse';
import { flatten, once } from 'lodash';
import { Lifecycle } from 'packages/kbn-test/types/ftr';
import { Suite, Test } from './mocha_types';
import { Mocha, Suite, Test } from '../../fake_mocha_types';

type ISnapshotState = InstanceType<typeof SnapshotState>;

Expand Down

This file was deleted.

0 comments on commit 779ab6b

Please sign in to comment.