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