Skip to content

Commit 6eb3969

Browse files
committed
Tweak implementation to pass both Jasmine & Circus
1 parent b144f11 commit 6eb3969

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

e2e/__tests__/__snapshots__/detectOpenHandles.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Jest has detected the following 1 open handle potentially keeping Jest from exit
5252
11 | });
5353
12 |
5454
55-
at Object.setTimeout (__tests__/in-done-lifecycle.js:9:3)
55+
at setTimeout (__tests__/in-done-lifecycle.js:9:3)
5656
`;
5757

5858
exports[`prints out info about open handlers from tests with a \`done\` callback 1`] = `

packages/jest-jasmine2/src/jasmineAsyncInstall.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function promisifyLifeCycleFunction(
5959
...args: Array<any>
6060
) {
6161
// @ts-expect-error: Support possible extra args at runtime
62-
return fn.apply(this, args);
62+
return fn(...args);
6363
};
6464
return originalFn.call(env, asyncJestLifecycleWithCallback, timeout);
6565
}

0 commit comments

Comments
 (0)