Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxingbaoyu committed Oct 11, 2022
1 parent 7e73efd commit 7adfaa8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/jest-circus/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,8 @@ const test: Global.It = (() => {
) => void,
timeout?: number,
failing?: boolean,
asyncError?: Error,
asyncError: Error = new ErrorWithStack(undefined, testFn),
) => {
asyncError = asyncError || new ErrorWithStack(undefined, testFn);

try {
testName = convertDescriptorToString(testName);
} catch (error) {
Expand Down

0 comments on commit 7adfaa8

Please sign in to comment.