Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Environment.mock.resolveMostRecentOperation((operation) =>
MockPayloadGenerator.generate(operation),
);
env.mock.resolveMostRecentOperation(operation => MockPayloadGenerator.generate(operation))
env.mock.resolveMostRecentOperation(op => MockPayloadGenerator.generate(op))
environment.mock.resolveMostRecentOperation(operation => {
return MockPayloadGenerator.generate(operation)
})
expect(renderer.toJSON()).toMatchSnapshot()
env.mock.resolveMostRecentOperation(operation => MockPayloadGenerator.generate(operation))