@apollographql/apollo-tools
Advanced tools
Comparing version 0.4.1 to 0.4.2
{ | ||
"name": "@apollographql/apollo-tools", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"author": "Apollo GraphQL <opensource@apollographql.com>", | ||
@@ -21,3 +21,33 @@ "license": "MIT", | ||
}, | ||
"gitHead": "4eea9a99d77e426e5fd03594fadbb4ed6d716da4" | ||
"jest": { | ||
"preset": "ts-jest", | ||
"testEnvironment": "node", | ||
"testMatch": null, | ||
"testRegex": "/__tests__/.*\\.test\\.(js|ts)$", | ||
"testPathIgnorePatterns": [ | ||
"<rootDir>/node_modules/", | ||
"<rootDir>/lib/" | ||
], | ||
"moduleFileExtensions": [ | ||
"ts", | ||
"js" | ||
], | ||
"transformIgnorePatterns": [ | ||
"/node_modules/" | ||
], | ||
"setupFiles": [ | ||
"apollo-env" | ||
], | ||
"snapshotSerializers": [ | ||
"<rootDir>/src/__tests__/snapshotSerializers/astSerializer.ts", | ||
"<rootDir>/src/__tests__/snapshotSerializers/graphQLTypeSerializer.ts" | ||
], | ||
"globals": { | ||
"ts-jest": { | ||
"tsConfig": "<rootDir>/tsconfig.test.json", | ||
"diagnostics": true | ||
} | ||
} | ||
}, | ||
"gitHead": "6d168194f3ee0563b4105b41a39f39d8c1fd80e8" | ||
} |
import gql from "graphql-tag"; | ||
import { buildServiceDefinition } from "../buildServiceDefinition"; | ||
import { GraphQLObjectType } from "graphql"; | ||
import { astSerializer, graphQLTypeSerializer } from "./snapshotSerializers"; | ||
expect.addSnapshotSerializer(astSerializer); | ||
expect.addSnapshotSerializer(graphQLTypeSerializer); | ||
describe("buildServiceDefinition", () => { | ||
@@ -10,0 +6,0 @@ describe(`type definitions`, () => { |
import { ASTNode, print } from "graphql"; | ||
import { Plugin, Config, Refs } from "pretty-format"; | ||
import { Plugin, Config, Refs, Printer } from "pretty-format"; | ||
export default { | ||
export = { | ||
test(value: any) { | ||
@@ -15,3 +15,3 @@ return value && typeof value.kind === "string"; | ||
refs: Refs, | ||
printer: any | ||
printer: Printer | ||
): string { | ||
@@ -18,0 +18,0 @@ return ( |
import { isNamedType, GraphQLNamedType, printType } from "graphql"; | ||
import { Plugin, Config, Refs } from "pretty-format"; | ||
import { Plugin, Config, Refs, Printer } from "pretty-format"; | ||
export default { | ||
export = { | ||
test(value: any) { | ||
@@ -15,3 +15,3 @@ return value && isNamedType(value); | ||
refs: Refs, | ||
printer: any | ||
printer: Printer | ||
): string { | ||
@@ -18,0 +18,0 @@ return printType(value); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
185152
54
985