Skip to content

Instantly share code, notes, and snippets.

@mcollina
Last active July 6, 2022 09:45
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcollina/0eeed6a5d3d93fc225e5f7ee68a0d474 to your computer and use it in GitHub Desktop.
Save mcollina/0eeed6a5d3d93fc225e5f7ee68a0d474 to your computer and use it in GitHub Desktop.
// 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