UNPKG

apollo-angular

Version:

Use your GraphQL data in your Angular app, with the Apollo Client

24 lines 904 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createTestApp = void 0; const path_1 = require("path"); const testing_1 = require("@angular-devkit/schematics/testing"); const collectionPath = (0, path_1.join)(__dirname, '../collection.json'); async function createTestApp(appOptions = {}) { const runner = new testing_1.SchematicTestRunner('apollo-angular', collectionPath); const workspaceTree = await runner .runExternalSchematicAsync('@schematics/angular', 'workspace', { name: 'workspace', version: '11.0.0', newProjectRoot: 'projects', }) .toPromise(); return runner .runExternalSchematicAsync('@schematics/angular', 'application', { ...appOptions, name: 'apollo', }, workspaceTree) .toPromise(); } exports.createTestApp = createTestApp; //# sourceMappingURL=test.js.map