Skip to content

Commit 79cd38d

Browse files
author
Tonye Jack
committed
Fixed test.
1 parent b4d9464 commit 79cd38d

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Graphql code generator pre-commit hook",
55
"main": "./bin/graphql-codegen-hook.js",
66
"scripts": {
7-
"test": "cd tests && npx graphql-codegen-hook -c codegen.yml src/query.ts --verbose"
7+
"test": "npm link && cd tests && graphql-codegen-hook -c codegen.yml src/query.ts --verbose"
88
},
99
"bin": {
1010
"graphql-codegen-hook": "./bin/graphql-codegen-hook.js"

tests/src/generated/graphql.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@ export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
1212

1313
/** All built-in and custom scalars, mapped to their actual values */
1414
export type Scalars = {
15-
ID: string,
16-
String: string,
17-
Boolean: boolean,
18-
Int: number,
19-
Float: number,
15+
ID: string;
16+
String: string;
17+
Boolean: boolean;
18+
Int: number;
19+
Float: number;
2020
};
2121

2222
export type IsUpdatingType = {
23-
__typename?: 'IsUpdatingType',
24-
isUpdating: Scalars['Boolean'],
23+
__typename?: 'IsUpdatingType';
24+
isUpdating: Scalars['Boolean'];
2525
};
2626

2727
export type Query = {
28-
__typename?: 'Query',
29-
isUpdating: Scalars['Boolean'],
28+
__typename?: 'Query';
29+
isUpdating: Scalars['Boolean'];
3030
};
3131

3232
export type IsUpdatingQueryVariables = {};
@@ -49,7 +49,7 @@ export type IsUpdatingComponentProps = Omit<ApolloReactComponents.QueryComponent
4949
<ApolloReactComponents.Query<IsUpdatingQuery, IsUpdatingQueryVariables> query={IsUpdatingDocument} {...props} />
5050
);
5151

52-
export type IsUpdatingProps<TChildProps = {}> = ApolloReactHoc.DataProps<IsUpdatingQuery, IsUpdatingQueryVariables> | TChildProps;
52+
export type IsUpdatingProps<TChildProps = {}> = ApolloReactHoc.DataProps<IsUpdatingQuery, IsUpdatingQueryVariables> & TChildProps;
5353
export function withIsUpdating<TProps, TChildProps = {}>(operationOptions?: ApolloReactHoc.OperationOption<
5454
TProps,
5555
IsUpdatingQuery,

0 commit comments

Comments
 (0)