(fetcher: FetcherBase)
| 4 | |
| 5 | // eslint-disable-next-line import/prefer-default-export |
| 6 | export const createEnvironment = (fetcher: FetcherBase) => ( |
| 7 | new Environment({ |
| 8 | network: Network.create((request, variables) => fetcher.fetch(request, variables)), |
| 9 | store: new Store(new RecordSource()), |
| 10 | }) |
| 11 | ) |
no test coverage detected