UNPKG

@graphql-mocks/sinon

Version:

Mock using graphql-mocks with sinon spy

13 lines (11 loc) 310 B
'use strict'; var graphqlMocks = require('graphql-mocks'); var spyWrapper = require('./spy-wrapper.js'); function spyMiddleware(h) { return graphqlMocks.embed({ highlight: h, wrappers: [spyWrapper.spyWrapper] }); } exports.spyMiddleware = spyMiddleware; //# sourceMappingURL=spy-middleware.js.map