Refactor tests command menu (#1702)

* Fix tests

* Refactor tests command menu

* Improve tests

* Fix optimistic render breaking tests
This commit is contained in:
Charles Bochet
2023-09-21 11:53:36 -07:00
committed by GitHub
parent b5b46f923a
commit 7ce03ffdd1
10 changed files with 100 additions and 464 deletions

View File

@ -1,9 +1,11 @@
import { GetPeopleDocument, Person } from '~/generated/graphql';
import { Person } from '~/generated/graphql';
import { GET_PEOPLE } from '../queries/getPeople';
export const getPeopleOptimisticEffectDefinition = {
key: 'generic-entity-table-data-people',
typename: 'Person',
query: GetPeopleDocument,
query: GET_PEOPLE,
resolver: ({
currentData,
newData,

View File

@ -1,6 +1,9 @@
import { gql } from '@apollo/client';
import { PERSON_FIELDS_FRAGMENT } from '../fragments/personFieldsFragment';
export const GET_PEOPLE = gql`
${PERSON_FIELDS_FRAGMENT}
query GetPeople(
$orderBy: [PersonOrderByWithRelationInput!]
$where: PersonWhereInput