UNPKG

codeceptjs

Version:

Supercharged End 2 End Testing Framework for NodeJS

43 lines (40 loc) 1.1 kB
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[] meta: Record<string, any> notes: Array<{ type: string text: string }> state: string err?: Error config: Record<string, any> artifacts: string[] inject: Record<string, any> opts: Record<string, any> throws?: Error | string | RegExp | Function totalTimeout?: number relativeFile?: string addToSuite(suite: Mocha.Suite): void applyOptions(opts: Record<string, any>): void simplify(): Record<string, any> toFileName(): string addNote(type: string, note: string): 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 } } }