Skip to content

Commit

Permalink
Tweak implementation to pass both Jasmine & Circus
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr0grog committed May 19, 2021
1 parent b144f11 commit 6eb3969
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion e2e/__tests__/__snapshots__/detectOpenHandles.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Jest has detected the following 1 open handle potentially keeping Jest from exit
11 | });
12 |
at Object.setTimeout (__tests__/in-done-lifecycle.js:9:3)
at setTimeout (__tests__/in-done-lifecycle.js:9:3)
`;

exports[`prints out info about open handlers from tests with a \`done\` callback 1`] = `
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-jasmine2/src/jasmineAsyncInstall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function promisifyLifeCycleFunction(
...args: Array<any>
) {
// @ts-expect-error: Support possible extra args at runtime
return fn.apply(this, args);
return fn(...args);
};
return originalFn.call(env, asyncJestLifecycleWithCallback, timeout);
}
Expand Down

0 comments on commit 6eb3969

Please sign in to comment.