Add integration test

This commit is contained in:
Chi Vinh Le
2018-08-31 17:15:40 +02:00
parent 428c35a931
commit 25e8cb517b
8 changed files with 717 additions and 19 deletions
@@ -0,0 +1,9 @@
import sinon, { SinonStub } from "sinon";
export default function createSinonStub(
...callbacks: Array<(s: SinonStub) => void>
): SinonStub {
const stub = sinon.stub();
callbacks.forEach(cb => cb(stub));
return stub;
}
@@ -3,6 +3,7 @@ export {
CreateRelayEnvironmentParams,
} from "./createRelayEnvironment";
export { default as createFluentBundle } from "./createFluentBundle";
export { default as createSinonStub } from "./createSinonStub";
export {
default as removeFragmentRefs,
NoFragmentRefs,