Skip to content

Commit

Permalink
kick-off test run inside try-catch as well
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed May 15, 2018
1 parent 242ac3e commit 790b95f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/jest-jasmine2/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@ async function jasmine2(
env.specFilter = spec => testNameRegex.test(spec.getFullName());
}

runtime.requireModule(testPath);
await env.execute();

try {
runtime.requireModule(testPath);
await env.execute();

const results = await reporter.getResults();

return addSnapshotData(results, snapshotState);
Expand Down

0 comments on commit 790b95f

Please sign in to comment.