diff --git a/packages/jest-circus/src/index.ts b/packages/jest-circus/src/index.ts index 760c4a2832ce..f7af0d421db4 100644 --- a/packages/jest-circus/src/index.ts +++ b/packages/jest-circus/src/index.ts @@ -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) {