Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Co-authored-by: Tom Mrazauskas <tom@mrazauskas.de>
  • Loading branch information
F3n67u and mrazauskas committed Apr 12, 2022
1 parent fe5f370 commit 8a8eb36
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions packages/jest-runtime/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2100,13 +2100,11 @@ export default class Runtime {
});

const setTimeout = (timeout: number) => {
// @ts-expect-error: https://github.com/Microsoft/TypeScript/issues/24587
this._environment.global[testTimeoutSymbol] = timeout;
return jestObject;
};

const retryTimes = (numTestRetries: number) => {
// @ts-expect-error: https://github.com/Microsoft/TypeScript/issues/24587
this._environment.global[retryTimesSymbol] = numTestRetries;
return jestObject;
};
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-types/src/Global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,5 @@ export interface GlobalAdditions extends TestFrameworkGlobals {
export interface Global
extends GlobalAdditions,
Omit<typeof globalThis, keyof GlobalAdditions> {
[extras: string]: unknown;
[extras: PropertyKey]: unknown;
}

0 comments on commit 8a8eb36

Please sign in to comment.