prisma-labs / konn

MIT License
89 stars 4 forks source link

Errors in upstream providers do not halt execution of dependencies #32

Open jasonkuhrt opened 2 years ago

jasonkuhrt commented 2 years ago

Jest does not do this for us by default:

import { execute } from 'relay-runtime/lib/store/RelayModernQueryExecutor'

beforeAll(() => {
  console.log(1)
})

beforeAll(() => {
  console.log(2)
  throw new Error(`oops`)
})

beforeAll(() => {
  console.log(3)
})

it('a', () => {
  expect(1).toBe(1)
})

3 will be logged despite failure in 2.