Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
TuvalSimha committed Jul 11, 2023
1 parent 8e5e2e8 commit a25e769
Show file tree
Hide file tree
Showing 7 changed files with 135 additions and 157 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"@graphql-inspector/url-loader": "workspace:*",
"@graphql-inspector/validate-command": "workspace:*",
"@theguild/eslint-config": "0.11.0",
"@theguild/prettier-config": "1.1.3",
"@theguild/prettier-config": "2.0.0",
"@types/body-parser": "1.19.2",
"@types/cors": "2.8.13",
"@types/express": "4.17.17",
Expand All @@ -85,7 +85,7 @@
"lint-staged": "13.2.2",
"lodash": "4.17.21",
"nock": "13.3.1",
"prettier": "2.8.8",
"prettier": "3.0.0",
"rimraf": "5.0.1",
"smee-client": "1.2.3",
"strip-ansi": "7.1.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/action/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@
[`b940baa5`](https://github.com/kamilkisiela/graphql-inspector/commit/b940baa57c57b60ca135572b378954a8e58dfe50)
Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:
- Updated dependency
[`@actions/core@1.10.0` ↗︎](https://www.npmjs.com/package/@actions/core/v/1.10.0) (from `1.9.1`,
in `dependencies`)
[`@actions/core@1.10.0` ↗︎](https://www.npmjs.com/package/@actions/core/v/1.10.0) (from
`1.9.1`, in `dependencies`)
- Updated dependencies
[[`dd840130`](https://github.com/kamilkisiela/graphql-inspector/commit/dd8401300512497adb4301e1f2004865941b132f),
[`5147c450`](https://github.com/kamilkisiela/graphql-inspector/commit/5147c4501f75a99092c5e0799cc2cdeb9e77485d)]:
Expand Down
84 changes: 45 additions & 39 deletions packages/action/__tests__/run.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,20 +84,22 @@ describe('Inspector Action', () => {
}
});

mockLoadFile.mockResolvedValueOnce(/* GraphQL */ `
type Query {
oldQuery: OldType @deprecated(reason: "use newQuery")
newQuery: Int!
}
mockLoadFile
.mockResolvedValueOnce(/* GraphQL */ `
type Query {
oldQuery: OldType @deprecated(reason: "use newQuery")
newQuery: Int!
}
type OldType {
field: String!
}
`).mockResolvedValueOnce(/* GraphQL */ `
type Query {
newQuery: Int!
}
`);
type OldType {
field: String!
}
`)
.mockResolvedValueOnce(/* GraphQL */ `
type Query {
newQuery: Int!
}
`);

await run();

Expand Down Expand Up @@ -145,20 +147,22 @@ describe('Inspector Action', () => {
}
});

mockLoadFile.mockResolvedValueOnce(/* GraphQL */ `
type Query {
oldQuery: OldType @deprecated(reason: "use newQuery")
newQuery: Int!
}
mockLoadFile
.mockResolvedValueOnce(/* GraphQL */ `
type Query {
oldQuery: OldType @deprecated(reason: "use newQuery")
newQuery: Int!
}
type OldType {
field: String!
}
`).mockResolvedValueOnce(/* GraphQL */ `
type Query {
newQuery: Int!
}
`);
type OldType {
field: String!
}
`)
.mockResolvedValueOnce(/* GraphQL */ `
type Query {
newQuery: Int!
}
`);

await run();

Expand Down Expand Up @@ -206,20 +210,22 @@ describe('Inspector Action', () => {
}
});

mockLoadFile.mockResolvedValueOnce(/* GraphQL */ `
type Query {
oldQuery: OldType @deprecated(reason: "use newQuery")
newQuery: Int!
}
mockLoadFile
.mockResolvedValueOnce(/* GraphQL */ `
type Query {
oldQuery: OldType @deprecated(reason: "use newQuery")
newQuery: Int!
}
type OldType {
field: String!
}
`).mockResolvedValueOnce(/* GraphQL */ `
type Query {
newQuery: Int!
}
`);
type OldType {
field: String!
}
`)
.mockResolvedValueOnce(/* GraphQL */ `
type Query {
newQuery: Int!
}
`);

await run();

Expand Down
15 changes: 9 additions & 6 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,16 @@
[`81a1b57e`](https://github.com/kamilkisiela/graphql-inspector/commit/81a1b57e4f8112c9b71b35f81c6e99d4bda9c341)
Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:

- Updated dependency [`@babel/core@7.21.8` ↗︎](https://www.npmjs.com/package/@babel/core/v/7.21.8)
(from `7.21.5`, in `dependencies`)
- Updated dependency
[`@babel/core@7.21.8` ↗︎](https://www.npmjs.com/package/@babel/core/v/7.21.8) (from `7.21.5`,
in `dependencies`)

- [#2510](https://github.com/kamilkisiela/graphql-inspector/pull/2510)
[`7944118e`](https://github.com/kamilkisiela/graphql-inspector/commit/7944118e8497bf8d6aabc9c31e3ea329bdcf3236)
Thanks [@TuvalSimha](https://github.com/TuvalSimha)! - dependencies updates:
- Updated dependency [`@babel/core@7.22.1` ↗︎](https://www.npmjs.com/package/@babel/core/v/7.22.1)
(from `7.21.8`, in `dependencies`)
- Updated dependency
[`@babel/core@7.22.1` ↗︎](https://www.npmjs.com/package/@babel/core/v/7.22.1) (from `7.21.8`,
in `dependencies`)
- Updated dependency [`tslib@2.5.3` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.3) (from
`2.5.0`, in `dependencies`)
- Updated dependencies
Expand Down Expand Up @@ -100,8 +102,9 @@
- [#2477](https://github.com/kamilkisiela/graphql-inspector/pull/2477)
[`5aececfd`](https://github.com/kamilkisiela/graphql-inspector/commit/5aececfd2f5fc2c0a1f42666fc5d1764088a2da0)
Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:
- Updated dependency [`@babel/core@7.21.5` ↗︎](https://www.npmjs.com/package/@babel/core/v/7.21.5)
(from `7.21.4`, in `dependencies`)
- Updated dependency
[`@babel/core@7.21.5` ↗︎](https://www.npmjs.com/package/@babel/core/v/7.21.5) (from `7.21.4`,
in `dependencies`)
- Updated dependencies
[[`ccfecba2`](https://github.com/kamilkisiela/graphql-inspector/commit/ccfecba2ca619fb10bfbc5f69e4ad1952b3ea9cc)]:
- @graphql-inspector/commands@3.4.8
Expand Down
10 changes: 6 additions & 4 deletions packages/commands/serve/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@
[`09214509`](https://github.com/kamilkisiela/graphql-inspector/commit/09214509bf938cfc9472288d08cea92cad116857)
Thanks [@TuvalSimha](https://github.com/TuvalSimha)! - dependencies updates:

- Updated dependency [`graphql-yoga@3.9.0` ↗︎](https://www.npmjs.com/package/graphql-yoga/v/3.9.0)
(from `^3.9.0`, in `dependencies`)
- Updated dependency
[`graphql-yoga@3.9.0` ↗︎](https://www.npmjs.com/package/graphql-yoga/v/3.9.0) (from `^3.9.0`,
in `dependencies`)
- Updated dependency [`tslib@2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from
`^2.0.0`, in `dependencies`)

Expand All @@ -81,8 +82,9 @@
[`2b348909`](https://github.com/kamilkisiela/graphql-inspector/commit/2b348909abfe41a2fc45555d37c7e6f3d94e94b7)
Thanks [@TuvalSimha](https://github.com/TuvalSimha)! - dependencies updates:

- Updated dependency [`graphql-yoga@3.9.1` ↗︎](https://www.npmjs.com/package/graphql-yoga/v/3.9.1)
(from `3.9.0`, in `dependencies`)
- Updated dependency
[`graphql-yoga@3.9.1` ↗︎](https://www.npmjs.com/package/graphql-yoga/v/3.9.1) (from `3.9.0`, in
`dependencies`)

- [#2448](https://github.com/kamilkisiela/graphql-inspector/pull/2448)
[`89db2b41`](https://github.com/kamilkisiela/graphql-inspector/commit/89db2b413cbe6f7e268342cef281a86b52dff506)
Expand Down
4 changes: 2 additions & 2 deletions packages/core/__tests__/validate/query-depth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ describe('calculateDepth', () => {
calculateDepth({
node: doc,
currentDepth: 0,
getFragment: () => ({} as any),
getFragment: () => ({}) as any,
}),
).toEqual(2);
});
Expand All @@ -113,7 +113,7 @@ describe('calculateDepth', () => {
node: doc,
currentDepth: 0,
maxDepth: 1,
getFragment: () => ({} as any),
getFragment: () => ({}) as any,
});
}).toThrow();
});
Expand Down
Loading

0 comments on commit a25e769

Please sign in to comment.