Add all FooOrError GraphQL unions to defaultMocks, defaulting to the non-error type. This allows cleaning up a bunch of mock overrides in tests.
There was a test flake on App.test in an earlier master build, I'm hoping this will help.
Differential D8205
[dagit] Clean up GraphQL mocks • dish on Jun 2 2021, 7:27 PM. Authored by Tags None Referenced Files
Subscribers None
Details
Add all FooOrError GraphQL unions to defaultMocks, defaulting to the non-error type. This allows cleaning up a bunch of mock overrides in tests. There was a test flake on App.test in an earlier master build, I'm hoping this will help. yarn jest
Diff Detail
Event TimelineComment Actions Also clean up how default mocks are being merged, since overriding spreads could be unwise. |