Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Oct 26, 2020
1 parent 714f7ac commit 6a6e7df
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion e2e/__tests__/__snapshots__/failures.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,19 @@ FAIL __tests__/duringTests.test.js
● Object with stack prop thrown during test
42
thrown: Object {
"stack": 42,
}
30 | });
31 |
> 32 | test('Object with stack prop thrown during test', () => {
| ^
33 | // eslint-disable-next-line no-throw-literal
34 | throw {stack: 42};
35 | });
at Object.test (__tests__/duringTests.test.js:32:1)
● Error during test
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-jasmine2/src/expectationResultFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function stackFormatter(
}

if (options.error) {
if (options.error.stack) {
if ( typeof options.error.stack === 'string') {
return options.error.stack;
}

Expand Down

0 comments on commit 6a6e7df

Please sign in to comment.