Last active
March 29, 2016 17:02
-
-
Save Prinzhorn/8c51d0f89ca6307e44c6351133d17a82 to your computer and use it in GitHub Desktop.
Jest + jasmine silently ignores
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$: npm test | |
> [email protected] 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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