Skip to content

Commit

Permalink
add missingLiveResolverFields & relayResolverErrors in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
morrys committed Jun 30, 2022
1 parent de7e5ee commit 29e7259
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
6 changes: 6 additions & 0 deletions __tests__/ReactRelayFragmentContainer-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ describe('ReactRelayFragmentContainer', () => {
name: 'Zuck',
},
isMissingData: false,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
missingRequiredFields: null,
seenRecords: expect.any(Object),
Expand Down Expand Up @@ -331,6 +333,8 @@ describe('ReactRelayFragmentContainer', () => {
name: 'Joe',
},
isMissingData: false,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
missingRequiredFields: null,
seenRecords: expect.any(Object),
Expand Down Expand Up @@ -380,6 +384,8 @@ describe('ReactRelayFragmentContainer', () => {
// Name is excluded since value of cond is now false
},
isMissingData: false,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
missingRequiredFields: null,
seenRecords: expect.any(Object),
Expand Down
8 changes: 8 additions & 0 deletions __tests__/ReactRelayPaginationContainer-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,8 @@ describe('ReactRelayPaginationContainer', () => {
isMissingData: false,
missingClientEdges: null,
missingRequiredFields: null,
missingLiveResolverFields: [],
relayResolverErrors: [],
seenRecords: expect.any(Object),
selector: createReaderSelector(
UserFragment,
Expand Down Expand Up @@ -501,6 +503,8 @@ describe('ReactRelayPaginationContainer', () => {
isMissingData: false,
missingClientEdges: null,
missingRequiredFields: null,
missingLiveResolverFields: [],
relayResolverErrors: [],
seenRecords: expect.any(Object),
selector: createReaderSelector(
UserFragment,
Expand Down Expand Up @@ -567,6 +571,8 @@ describe('ReactRelayPaginationContainer', () => {
isMissingData: false,
missingClientEdges: null,
missingRequiredFields: null,
missingLiveResolverFields: [],
relayResolverErrors: [],
seenRecords: expect.any(Object),
selector: createReaderSelector(
UserFragment,
Expand Down Expand Up @@ -669,6 +675,8 @@ describe('ReactRelayPaginationContainer', () => {
isMissingData: false,
missingClientEdges: null,
missingRequiredFields: null,
missingLiveResolverFields: [],
relayResolverErrors: [],
seenRecords: expect.any(Object),
selector: createReaderSelector(
UserFragment,
Expand Down
8 changes: 8 additions & 0 deletions __tests__/ReactRelayRefetchContainer-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@ describe('ReactRelayRefetchContainer', () => {
name: 'Zuck',
},
isMissingData: false,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
missingRequiredFields: null,
seenRecords: expect.any(Object),
Expand Down Expand Up @@ -372,6 +374,8 @@ describe('ReactRelayRefetchContainer', () => {
name: 'Joe',
},
isMissingData: false,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
missingRequiredFields: null,
seenRecords: expect.any(Object),
Expand Down Expand Up @@ -423,6 +427,8 @@ describe('ReactRelayRefetchContainer', () => {
// Name is excluded since value of cond is now false
},
isMissingData: false,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
missingRequiredFields: null,
seenRecords: expect.any(Object),
Expand Down Expand Up @@ -495,6 +501,8 @@ describe('ReactRelayRefetchContainer', () => {
// Name is excluded since value of cond is now false
},
isMissingData: false,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
missingRequiredFields: null,
seenRecords: expect.any(Object),
Expand Down
8 changes: 8 additions & 0 deletions __tests__/useRefetchable-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,8 @@ describe('useRefetchable', () => {
name: 'Zuck',
},
isMissingData: false,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
missingRequiredFields: null,
seenRecords: expect.any(Object),
Expand Down Expand Up @@ -360,6 +362,8 @@ describe('useRefetchable', () => {
name: 'Joe',
},
isMissingData: false,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
missingRequiredFields: null,
seenRecords: expect.any(Object),
Expand Down Expand Up @@ -413,6 +417,8 @@ describe('useRefetchable', () => {
},
isMissingData: false,
missingClientEdges: null,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingRequiredFields: null,
seenRecords: expect.any(Object),
selector: createReaderSelector(
Expand Down Expand Up @@ -486,6 +492,8 @@ describe('useRefetchable', () => {
// Name is excluded since value of cond is now false
},
isMissingData: false,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
missingRequiredFields: null,
seenRecords: expect.any(Object),
Expand Down

0 comments on commit 29e7259

Please sign in to comment.