6cb2e3a3cf
* chore: move mocks next to graphql queries * chore: mock functions rework * chore: clean up
17 lines
391 B
TypeScript
17 lines
391 B
TypeScript
import type { ChainIdQuery } from './__generated__/ChainId';
|
|
import merge from 'lodash/merge';
|
|
import type { PartialDeep } from 'type-fest';
|
|
|
|
export const chainIdQuery = (
|
|
override?: PartialDeep<ChainIdQuery>
|
|
): ChainIdQuery => {
|
|
const defaultResult = {
|
|
statistics: {
|
|
__typename: 'Statistics',
|
|
chainId: 'test-id',
|
|
},
|
|
};
|
|
|
|
return merge(defaultResult, override);
|
|
};
|