forked from Klaveness-Digital/cypress-cucumber-preprocessor
-
-
Notifications
You must be signed in to change notification settings - Fork 148
/
augmentations.d.ts
46 lines (38 loc) · 1004 Bytes
/
augmentations.d.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
35
36
37
38
39
40
41
42
43
44
45
46
import messages from "@cucumber/messages";
import { Registry } from "./lib/registry";
import { MochaGlobals } from "mocha";
declare module "@cucumber/cucumber" {
interface IWorld {
tmpDir: string;
verifiedLastRunError: boolean;
lastRun: {
stdout: string;
stderr: string;
output: string;
exitCode: number;
};
}
}
declare module "stream" {
// This is as of this writing, not typed.
function compose(...streams: Stream[]): Duplex;
}
declare global {
namespace globalThis {
var __cypress_cucumber_preprocessor_registry_dont_use_this:
| Registry
| undefined;
var __cypress_cucumber_preprocessor_mocha_dont_use_this:
| Pick<MochaGlobals, "before" | "beforeEach" | "after" | "afterEach">
| undefined;
}
interface Window {
testState: {
gherkinDocument: messages.GherkinDocument;
pickles: messages.Pickle[];
pickle: messages.Pickle;
pickleStep?: messages.PickleStep;
};
}
}
export {};