Skip to content

Commit 0de3b3c

Browse files
committed
review
1 parent 7e73efd commit 0de3b3c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/jest-circus/src/index.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,8 @@ const test: Global.It = (() => {
186186
) => void,
187187
timeout?: number,
188188
failing?: boolean,
189-
asyncError?: Error,
189+
asyncError: Error= new ErrorWithStack(undefined, testFn),,
190190
) => {
191-
asyncError = asyncError || new ErrorWithStack(undefined, testFn);
192-
193191
try {
194192
testName = convertDescriptorToString(testName);
195193
} catch (error) {

0 commit comments

Comments
 (0)