mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
Merge pull request #23391 from alan-agius4/patch-4
fix(jest): re-add global `spyOn`
This commit is contained in:
10
types/jest/index.d.ts
vendored
10
types/jest/index.d.ts
vendored
@@ -548,6 +548,16 @@ declare namespace jest {
|
||||
// Relevant parts of Jasmine's API are below so they can be changed and removed over time.
|
||||
// This file can't reference jasmine.d.ts since the globals aren't compatible.
|
||||
|
||||
declare function spyOn(object: any, method: string): jasmine.Spy;
|
||||
/**
|
||||
* If you call the function pending anywhere in the spec body,
|
||||
* no matter the expectations, the spec will be marked pending.
|
||||
*/
|
||||
declare function pending(reason?: string): void;
|
||||
/**
|
||||
* Fails a test when called within one.
|
||||
*/
|
||||
declare function fail(error?: any): void;
|
||||
declare namespace jasmine {
|
||||
let DEFAULT_TIMEOUT_INTERVAL: number;
|
||||
function clock(): Clock;
|
||||
|
||||
Reference in New Issue
Block a user