Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jasonkuhrt opened this issue Feb 21, 2022 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@jasonkuhrt
Copy link
Member

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.

@jasonkuhrt jasonkuhrt added the enhancement New feature or request label Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant