/
types.ts
34 lines (27 loc) · 862 Bytes
/
types.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
30
31
32
33
34
import { Config } from '@jest/types'
import { TsJestConfig } from '../../../src/types'
import RunResult from './run-result'
export interface RunTestOptions {
template?: string
env?: {}
inject?: (() => any) | string
writeIo?: boolean
jestConfig?: Config.ProjectConfig | any
tsJestConfig?: TsJestConfig | any
noCache?: boolean
jestConfigPath?: string
}
export type RunWithTemplatesIterator = (runtTest: () => RunResult, context: RunWithTemplateIteratorContext) => void
export interface RunWithTemplateIteratorContext {
templateName: string
describeLabel: string
itLabel: string
testLabel: string
}
// tslint:disable-next-line:interface-over-type-literal
export type TestRunResultsMap<T extends string = string> = { [key in T]: RunResult }
export interface PreparedTest {
workdir: string
templateDir: string
sourceDir: string
}