@artola Can you help me check if I'm missing something:
[x] Validate fixture against the parsed schema and no against the mock
[x] Set fixtures from tester.setFixture() used to set them before the test.
[x] Set autoMock flag on tester.setFixture(fixture, { autoMock: false }), used to prevent autoMock of the fields that are not on the fixture.
[x] If the autoMock is false validate that the fields on the fixture match with the request ones on the query (ignore extra fields that are not used on the query)
[x] Clear fixture and set autoMock to true again using tester.clearFixture()
const tester = new EasyGraphQLTester(schema)
@artola Can you help me check if I'm missing something:
tester.setFixture()
used to set them before the test.autoMock
flag ontester.setFixture(fixture, { autoMock: false })
, used to prevent autoMock of the fields that are not on the fixture.autoMock
isfalse
validate that the fields on the fixture match with the request ones on the query (ignore extra fields that are not used on the query)autoMock
totrue
again usingtester.clearFixture()
Missing
cc: @sibelius what do you think about it?