Skip to content

Commit

Permalink
Add support for platforms; fix stack-trace integration test.
Browse files Browse the repository at this point in the history
  • Loading branch information
cpojer committed May 14, 2016
1 parent e76c76d commit 5773b7f
Show file tree
Hide file tree
Showing 9 changed files with 285 additions and 160 deletions.
4 changes: 2 additions & 2 deletions integration_tests/__tests__/stack_trace-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ describe('Stack Trace', () => {
/\s+at\s(?:.+?)\s\(__tests__\/test-error-test\.js/
);

// Make sure we show Jest's Runtime.js as part of the stack trace
// Make sure we show Jest's jest-resolve as part of the stack trace
expect(stdout).toMatch(
/Error: Cannot find module 'this-module-does-not-exist' from 'test-error-test\.js'/
);
expect(stdout).toMatch(
/\s+at\s(?:.+?)\s\((?:.+?)Runtime\/Runtime\.js/
/\s+at\s(?:.+?)\s\((?:.+?)jest-resolve\/src\/index\.js/
);
});

Expand Down
Loading

0 comments on commit 5773b7f

Please sign in to comment.