UNPKG

19.6 kBSource Map (JSON)View Raw
1{"version":3,"file":"ngApolloTesting.umd.js","sources":["../../testing/src/controller.ts","../../testing/src/operation.ts","../../testing/src/backend.ts","../../testing/src/module.ts","../../testing/src/ngApolloTesting.ts"],"sourcesContent":["import {DocumentNode} from 'graphql';\n\nimport {TestOperation, Operation} from './operation';\n\nexport type MatchOperationFn = (op: Operation) => boolean;\nexport type MatchOperation =\n | string\n | DocumentNode\n | Operation\n | MatchOperationFn;\n\n/**\n * Controller to be injected into tests, that allows for mocking and flushing\n * of operations.\n *\n *\n */\nexport abstract class ApolloTestingController {\n /**\n * Search for operations that match the given parameter, without any expectations.\n */\n public abstract match(match: MatchOperation): TestOperation[];\n\n /**\n * Expect that a single has been made which matches the given URL, and return its\n * mock.\n *\n * If no such has been made, or more than one such has been made, fail with an\n * error message including the given description, if any.\n */\n public abstract expectOne(\n operationName: string,\n description?: string,\n ): TestOperation;\n\n /**\n * Expect that a single has been made which matches the given parameters, and return\n * its mock.\n *\n * If no such has been made, or more than one such has been made, fail with an\n * error message including the given description, if any.\n */\n public abstract expectOne(op: Operation, description?: string): TestOperation;\n\n /**\n * Expect that a single has been made which matches the given predicate function, and\n * return its mock.\n *\n * If no such has been made, or more than one such has been made, fail with an\n * error message including the given description, if any.\n */\n public abstract expectOne(\n matchFn: MatchOperationFn,\n description?: string,\n ): TestOperation;\n\n /**\n * Expect that a single has been made which matches the given condition, and return\n * its mock.\n *\n * If no such has been made, or more than one such has been made, fail with an\n * error message including the given description, if any.\n */\n public abstract expectOne(\n match: MatchOperation,\n description?: string,\n ): TestOperation;\n\n /**\n * Expect that no operations have been made which match the given URL.\n *\n * If a matching has been made, fail with an error message including the given\n * description, if any.\n */\n public abstract expectNone(operationName: string, description?: string): void;\n\n /**\n * Expect that no operations have been made which match the given parameters.\n *\n * If a matching has been made, fail with an error message including the given\n * description, if any.\n */\n public abstract expectNone(op: Operation, description?: string): void;\n\n /**\n * Expect that no operations have been made which match the given predicate function.\n *\n * If a matching has been made, fail with an error message including the given\n * description, if any.\n */\n public abstract expectNone(\n matchFn: MatchOperationFn,\n description?: string,\n ): void;\n\n /**\n * Expect that no operations have been made which match the given condition.\n *\n * If a matching has been made, fail with an error message including the given\n * description, if any.\n */\n public abstract expectNone(match: MatchOperation, description?: string): void;\n\n /**\n * Verify that no unmatched operations are outstanding.\n *\n * If any operations are outstanding, fail with an error message indicating which operations were not\n * handled.\n */\n public abstract verify(): void;\n}\n","import {\n ApolloError,\n Operation as LinkOperation,\n FetchResult,\n} from '@apollo/client/core';\nimport {GraphQLError, ExecutionResult} from 'graphql';\nimport {Observer} from 'rxjs';\n\nconst isApolloError = (err: any): err is ApolloError =>\n err && err.hasOwnProperty('graphQLErrors');\n\nexport type Operation = LinkOperation & {\n clientName: string;\n};\n\nexport class TestOperation<T = {[key: string]: any}> {\n constructor(\n public operation: Operation,\n private observer: Observer<FetchResult<T>>,\n ) {}\n\n public flush(result: ExecutionResult | ApolloError): void {\n if (isApolloError(result)) {\n this.observer.error(result);\n } else {\n this.observer.next(result as FetchResult<T>);\n this.observer.complete();\n }\n }\n\n public flushData(data: {[key: string]: any} | null): void {\n this.flush({\n data,\n });\n }\n\n public networkError(error: Error): void {\n const apolloError = new ApolloError({\n networkError: error,\n });\n\n this.flush(apolloError);\n }\n\n public graphqlErrors(errors: GraphQLError[]): void {\n this.flush({\n errors,\n });\n }\n}\n","import {Injectable} from '@angular/core';\nimport {Observer} from 'rxjs';\nimport {FetchResult, Observable as LinkObservable} from '@apollo/client/core';\nimport {print, DocumentNode} from 'graphql';\n\nimport {ApolloTestingController, MatchOperation} from './controller';\nimport {TestOperation, Operation} from './operation';\n\n/**\n * A testing backend for `Apollo`.\n *\n * `ApolloTestingBackend` works by keeping a list of all open operations.\n * As operations come in, they're added to the list. Users can assert that specific\n * operations were made and then flush them. In the end, a verify() method asserts\n * that no unexpected operations were made.\n */\n@Injectable()\nexport class ApolloTestingBackend implements ApolloTestingController {\n /**\n * List of pending operations which have not yet been expected.\n */\n private open: TestOperation[] = [];\n\n /**\n * Handle an incoming operation by queueing it in the list of open operations.\n */\n public handle(op: Operation): LinkObservable<FetchResult> {\n return new LinkObservable((observer: Observer<any>) => {\n const testOp = new TestOperation(op, observer);\n this.open.push(testOp);\n });\n }\n\n /**\n * Helper function to search for operations in the list of open operations.\n */\n private _match(match: MatchOperation): TestOperation[] {\n if (typeof match === 'string') {\n return this.open.filter(\n (testOp) => testOp.operation.operationName === match,\n );\n } else if (typeof match === 'function') {\n return this.open.filter((testOp) => match(testOp.operation));\n } else {\n if (this.isDocumentNode(match)) {\n return this.open.filter(\n (testOp) => print(testOp.operation.query) === print(match),\n );\n }\n\n return this.open.filter((testOp) => this.matchOp(match, testOp));\n }\n }\n\n private matchOp(match: Operation, testOp: TestOperation): boolean {\n const variables = JSON.stringify(match.variables);\n const extensions = JSON.stringify(match.extensions);\n\n const sameName = this.compare(\n match.operationName,\n testOp.operation.operationName,\n );\n const sameVariables = this.compare(variables, testOp.operation.variables);\n\n const sameQuery = print(testOp.operation.query) === print(match.query);\n\n const sameExtensions = this.compare(\n extensions,\n testOp.operation.extensions,\n );\n\n return sameName && sameVariables && sameQuery && sameExtensions;\n }\n\n private compare(expected?: string, value?: Object | string): boolean {\n const prepare = (val: any) =>\n typeof val === 'string' ? val : JSON.stringify(val);\n const received = prepare(value);\n\n return !expected || received === expected;\n }\n\n /**\n * Search for operations in the list of open operations, and return all that match\n * without asserting anything about the number of matches.\n */\n public match(match: MatchOperation): TestOperation[] {\n const results = this._match(match);\n\n results.forEach((result) => {\n const index = this.open.indexOf(result);\n if (index !== -1) {\n this.open.splice(index, 1);\n }\n });\n return results;\n }\n\n /**\n * Expect that a single outstanding request matches the given matcher, and return\n * it.\n *\n * operations returned through this API will no longer be in the list of open operations,\n * and thus will not match twice.\n */\n public expectOne(match: MatchOperation, description?: string): TestOperation {\n description = description || this.descriptionFromMatcher(match);\n const matches = this.match(match);\n if (matches.length > 1) {\n throw new Error(\n `Expected one matching operation for criteria \"${description}\", found ${matches.length} operations.`,\n );\n }\n if (matches.length === 0) {\n throw new Error(\n `Expected one matching operation for criteria \"${description}\", found none.`,\n );\n }\n return matches[0];\n }\n\n /**\n * Expect that no outstanding operations match the given matcher, and throw an error\n * if any do.\n */\n public expectNone(match: MatchOperation, description?: string): void {\n description = description || this.descriptionFromMatcher(match);\n const matches = this.match(match);\n if (matches.length > 0) {\n throw new Error(\n `Expected zero matching operations for criteria \"${description}\", found ${matches.length}.`,\n );\n }\n }\n\n /**\n * Validate that there are no outstanding operations.\n */\n public verify(): void {\n const open = this.open;\n\n if (open.length > 0) {\n // Show the methods and URLs of open operations in the error, for convenience.\n const operations = open\n .map((testOp) => testOp.operation.operationName)\n .join(', ');\n throw new Error(\n `Expected no open operations, found ${open.length}: ${operations}`,\n );\n }\n }\n\n private isDocumentNode(\n docOrOp: DocumentNode | Operation,\n ): docOrOp is DocumentNode {\n return !(docOrOp as Operation).operationName;\n }\n\n private descriptionFromMatcher(matcher: MatchOperation): string {\n if (typeof matcher === 'string') {\n return `Match operationName: ${matcher}`;\n } else if (typeof matcher === 'object') {\n if (this.isDocumentNode(matcher)) {\n return `Match DocumentNode`;\n }\n\n const name = matcher.operationName || '(any)';\n const variables = JSON.stringify(matcher.variables) || '(any)';\n\n return `Match operation: ${name}, variables: ${variables}`;\n } else {\n return `Match by function: ${matcher.name}`;\n }\n }\n}\n","import {Apollo} from 'apollo-angular';\nimport {\n ApolloLink,\n Operation as LinkOperation,\n InMemoryCache,\n ApolloCache,\n} from '@apollo/client/core';\nimport {NgModule, InjectionToken, Inject, Optional} from '@angular/core';\n\nimport {ApolloTestingController} from './controller';\nimport {ApolloTestingBackend} from './backend';\nimport {Operation} from './operation';\n\nexport type NamedCaches = Record<string, ApolloCache<any> | undefined | null>;\n\nexport const APOLLO_TESTING_CACHE = new InjectionToken<ApolloCache<any>>(\n 'apollo-angular/testing cache',\n);\n\nexport const APOLLO_TESTING_NAMED_CACHE = new InjectionToken<NamedCaches>(\n 'apollo-angular/testing named cache',\n);\n\nexport const APOLLO_TESTING_CLIENTS = new InjectionToken<string[]>(\n 'apollo-angular/testing named clients',\n);\n\nfunction addClient(name: string, op: LinkOperation): Operation {\n (op as Operation).clientName = name;\n\n return op as Operation;\n}\n\n@NgModule({\n providers: [\n ApolloTestingBackend,\n {provide: ApolloTestingController, useExisting: ApolloTestingBackend},\n ],\n})\nexport class ApolloTestingModuleCore {\n constructor(\n apollo: Apollo,\n backend: ApolloTestingBackend,\n @Optional()\n @Inject(APOLLO_TESTING_CLIENTS)\n namedClients?: string[],\n @Optional()\n @Inject(APOLLO_TESTING_CACHE)\n cache?: ApolloCache<any>,\n @Optional()\n @Inject(APOLLO_TESTING_NAMED_CACHE)\n namedCaches?: any, // FIX: using NamedCaches here makes ngc fail\n ) {\n function createOptions(name: string, c?: ApolloCache<any> | null) {\n return {\n link: new ApolloLink((operation) =>\n backend.handle(addClient(name, operation)),\n ),\n cache:\n c ||\n new InMemoryCache({\n addTypename: false,\n }),\n };\n }\n\n apollo.create(createOptions('default', cache));\n\n if (namedClients && namedClients.length) {\n namedClients.forEach((name) => {\n const caches =\n namedCaches && typeof namedCaches === 'object' ? namedCaches : {};\n\n apollo.createNamed(name, createOptions(name, caches[name]));\n });\n }\n }\n}\n\n@NgModule({\n imports: [ApolloTestingModuleCore],\n})\nexport class ApolloTestingModule {\n static withClients(names: string[]) {\n return {\n ngModule: ApolloTestingModuleCore,\n providers: [\n {\n provide: APOLLO_TESTING_CLIENTS,\n useValue: names,\n },\n ],\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n\nexport {ApolloTestingBackend as ɵc} from './backend';\nexport {APOLLO_TESTING_CLIENTS as ɵa,ApolloTestingModuleCore as ɵb} from './module';"],"names":["ApolloError","LinkObservable","print","Injectable","InjectionToken","ApolloLink","InMemoryCache","NgModule","Apollo","Optional","Inject","ApolloCache"],"mappings":";;;;;;IAWA;;;;;;;QAMA;SA6FC;sCAAA;KA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