-
Notifications
You must be signed in to change notification settings - Fork 451
/
types.ts
33 lines (26 loc) · 870 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
import type { Config } from '@jest/types'
import type { TsJestGlobalOptions } from '../../../src/types'
import type RunResult from './run-result'
export interface RunTestOptions {
template?: string
env?: Record<string, unknown>
inject?: (() => any) | string
writeIo?: boolean
jestConfig?: Config.ProjectConfig | Record<string, unknown>
tsJestConfig?: TsJestGlobalOptions
noCache?: boolean
jestConfigPath?: string
}
export type RunWithTemplatesIterator = (runtTest: () => RunResult, context: RunWithTemplateIteratorContext) => void
export interface RunWithTemplateIteratorContext {
templateName: string
describeLabel: string
itLabel: string
testLabel: string
}
export type TestRunResultsMap<T extends string = string> = { [key in T]: RunResult }
export interface PreparedTest {
workdir: string
templateDir: string
sourceDir: string
}