How to use the @angular-devkit/architect/testing.runTargetSpec function in @angular-devkit/architect

To help you get started, we’ve selected a few @angular-devkit/architect examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github angular / angular-cli / packages / angular_devkit / build_webpack / src / webpack / index_spec_large.ts View on Github external
it('works', (done) => {
      runTargetSpec(angularHost, webpackTargetSpec).pipe(
        tap((buildEvent) => expect(buildEvent.success).toBe(true)),
        tap(() => {
          expect(angularHost.scopedSync().exists(join(outputPath, 'main.js'))).toBe(true);
          expect(angularHost.scopedSync().exists(join(outputPath, 'polyfills.js'))).toBe(true);
        }),
      ).toPromise().then(done, done.fail);
    });
  });
github angular / angular-cli / packages / angular_devkit / build_webpack / src / webpack / index_spec_large.ts View on Github external
it('works', (done) => {
      runTargetSpec(basicHost, webpackTargetSpec).pipe(
        tap((buildEvent) => expect(buildEvent.success).toBe(true)),
        tap(() => {
          expect(basicHost.scopedSync().exists(join(outputPath, 'bundle.js'))).toBe(true);
        }),
      ).toPromise().then(done, done.fail);
    });
  });