-
-
Notifications
You must be signed in to change notification settings - Fork 750
Expand file tree
/
Copy pathtypes.d.ts
More file actions
31 lines (29 loc) · 822 Bytes
/
types.d.ts
File metadata and controls
31 lines (29 loc) · 822 Bytes
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
import { Test as MochaTest, Suite as MochaSuite } from 'mocha'
declare global {
namespace CodeceptJS {
interface Test extends MochaTest {
uid: string
title: string
tags: string[]
steps: string[]
config: Record<string, any>
artifacts: string[]
inject: Record<string, any>
opts: Record<string, any>
throws?: Error | string | RegExp | Function
totalTimeout?: number
addToSuite(suite: Mocha.Suite): void
applyOptions(opts: Record<string, any>): void
codeceptjs: boolean
}
interface Suite extends MochaSuite {
title: string
tags: string[]
opts: Record<string, any>
totalTimeout?: number
addTest(test: Test): void
applyOptions(opts: Record<string, any>): void
codeceptjs: boolean
}
}
}