Skip to content

Instantly share code, notes, and snippets.

@Prinzhorn
Last active March 29, 2016 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Prinzhorn/8c51d0f89ca6307e44c6351133d17a82 to your computer and use it in GitHub Desktop.
Save Prinzhorn/8c51d0f89ca6307e44c6351133d17a82 to your computer and use it in GitHub Desktop.
Jest + jasmine silently ignores
$: npm test
> tmp@1.0.0 test /tmp
> jest
Using Jest CLI v0.9.2, jasmine2
PASS __tests__/test.js (0.037s)
1 test passed (1 total in 1 test suite, run time 0.795s)
var someCriticalFunction = function() {
throw 'up';
};
describe('test 1', () => {
it('is true', () => {
expect(true).toBe(true);
})
});
describe('test 2', () => {
it('is ignored?', () => {
someCriticalFunction();
expect(true).toBe(false);
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment