Skip to content

Commit fb781f5

Browse files
committed
fix fail(err)
1 parent 441142f commit fb781f5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/integration-test-app/runner/lib/IntegrationTestRunner.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ export default class IntegrationTestRunner {
8282
}:${frame.column})`,
8383
)
8484
.join();
85-
fail(err);
86-
break;
87-
85+
throw err;
8886
case 'failed':
8987
failWithoutContext('TestModule.markTestPassed(false) was called');
9088
break;
@@ -136,7 +134,7 @@ export default class IntegrationTestRunner {
136134
function failWithoutContext(message: string) {
137135
const err = new Error(message);
138136
err.stack = '\n';
139-
fail(err);
137+
throw err;
140138
}
141139

142140
// "Borrowed" from LogBoxInspectorStackFrame

0 commit comments

Comments
 (0)