Last active
July 6, 2022 09:45
-
-
Save mcollina/0eeed6a5d3d93fc225e5f7ee68a0d474 to your computer and use it in GitHub Desktop.
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
// Run this with npx jest globals-jest-problem.test.js | |
// This is because of https://github.com/facebook/jest/issues/2549 | |
const assert = require('assert') | |
test('assert', () => { | |
try { | |
assert.strictEqual(2, 3) | |
} catch (err) { | |
// This will fail | |
expect(err instanceof Error, true) | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment