-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(jest-jasmine2, jest-types): remove jasmine
types from @jest/types
#12125
Changes from all commits
2ad75af
4d175b4
507aa0f
f0ebc2b
74b470e
acefe11
a0cb3b0
946b735
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,12 +51,6 @@ export type EachTestFn<EachCallback extends TestCallback> = ( | |
...args: ReadonlyArray<any> | ||
) => ReturnType<EachCallback>; | ||
|
||
// TODO: Get rid of this at some point | ||
type Jasmine = { | ||
_DEFAULT_TIMEOUT_INTERVAL?: number; | ||
addMatchers: (matchers: Record<string, unknown>) => void; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here I had in mind Jest globals. It was removed from Jest globals, but Jasmin types still have |
||
}; | ||
|
||
type Each<EachCallback extends TestCallback> = | ||
| (( | ||
table: EachTable, | ||
|
@@ -124,11 +118,6 @@ export interface TestFrameworkGlobals { | |
|
||
export interface GlobalAdditions extends TestFrameworkGlobals { | ||
__coverage__: CoverageMapData; | ||
jasmine: Jasmine; | ||
fail: () => void; | ||
pending: () => void; | ||
spyOn: () => void; | ||
spyOnProperty: () => void; | ||
} | ||
|
||
export interface Global | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about
pending
etc?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copied them all here for completeness. They were not necessary internally, but might be useful for something else.