diff --git a/types/jest/index.d.ts b/types/jest/index.d.ts index 1b8d137094..0a5c595cfa 100644 --- a/types/jest/index.d.ts +++ b/types/jest/index.d.ts @@ -555,7 +555,7 @@ declare namespace jasmine { function anything(): Any; function arrayContaining(sample: any[]): ArrayContaining; function objectContaining(sample: any): ObjectContaining; - function createSpy(name: string, originalFn?: (...args: any[]) => any): Spy; + function createSpy(name?: string, originalFn?: (...args: any[]) => any): Spy; function createSpyObj(baseName: string, methodNames: any[]): any; function createSpyObj(baseName: string, methodNames: any[]): T; function pp(value: any): string;