forked from Klaveness-Digital/cypress-cucumber-preprocessor
-
-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up a bunch of TypeScript shenanigans
Some of this was remnants of the past. Some was me not quite understanding script vs. module. Some was me misunderstanding what was actually going on in Tsd. It turns out that Tsd was just incidentally working, but I was never using it according to their intentions. You don't really test *.ts files with Tsd [1], but I happen to place compile output along side of them, hence "incidentally working". Now I am merely relying on TS compiler's diagnostic output, which is really what Tsd does anyway. [1] tsdjs/tsd#32
- Loading branch information
Showing
11 changed files
with
53 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import messages from "@cucumber/messages"; | ||
|
||
import { Registry } from "./lib/registry"; | ||
|
||
declare module "@cucumber/cucumber" { | ||
interface IWorld { | ||
tmpDir: string; | ||
verifiedLastRunError: boolean; | ||
lastRun: { | ||
stdout: string; | ||
stderr: string; | ||
output: string; | ||
exitCode: number; | ||
}; | ||
} | ||
} | ||
|
||
declare global { | ||
namespace globalThis { | ||
var __cypress_cucumber_preprocessor_dont_use_this: true | undefined; | ||
|
||
var __cypress_cucumber_preprocessor_registry_dont_use_this: | ||
| Registry | ||
| undefined; | ||
} | ||
|
||
interface Window { | ||
testState: { | ||
gherkinDocument: messages.GherkinDocument; | ||
pickles: messages.Pickle[]; | ||
pickle: messages.Pickle; | ||
pickleStep?: messages.PickleStep; | ||
}; | ||
} | ||
} | ||
|
||
export {}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"compilerOptions": { | ||
"noEmit": true | ||
}, | ||
"include": [ | ||
"*.test-d.ts", | ||
"../augmentations.d.ts", | ||
"../declarations.d.ts", | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters