From 3dafcf416f11cb9ae8070abaafae3fbe3dade79a Mon Sep 17 00:00:00 2001 From: Hans Larsen Date: Thu, 27 Dec 2018 14:05:25 -0800 Subject: [PATCH] feat(@angular-devkit/core): deprecate @angular-devkit/architect/testing --- packages/angular_devkit/architect/testing/request.ts | 3 +++ .../angular_devkit/architect/testing/run-target-spec.ts | 6 ++++++ packages/angular_devkit/architect/testing/test-logger.ts | 3 +++ .../angular_devkit/architect/testing/test-project-host.ts | 3 +++ 4 files changed, 15 insertions(+) diff --git a/packages/angular_devkit/architect/testing/request.ts b/packages/angular_devkit/architect/testing/request.ts index 6e3450a63bc5..107140f7b725 100644 --- a/packages/angular_devkit/architect/testing/request.ts +++ b/packages/angular_devkit/architect/testing/request.ts @@ -9,6 +9,9 @@ import * as http from 'http'; import * as https from 'https'; import * as Url from 'url'; +/** + * @deprecated + */ export function request(url: string, headers = {}): Promise { return new Promise((resolve, reject) => { const u = Url.parse(url); diff --git a/packages/angular_devkit/architect/testing/run-target-spec.ts b/packages/angular_devkit/architect/testing/run-target-spec.ts index 20688782b5c6..9073336b23d4 100644 --- a/packages/angular_devkit/architect/testing/run-target-spec.ts +++ b/packages/angular_devkit/architect/testing/run-target-spec.ts @@ -12,8 +12,14 @@ import { concatMap, concatMapTo, finalize, takeUntil } from 'rxjs/operators'; import { Architect, BuildEvent, BuilderContext, TargetSpecifier } from '../src'; import { TestProjectHost } from './test-project-host'; +/** + * @deprecated + */ export const DefaultTimeout = 45000; +/** + * @deprecated + */ export function runTargetSpec( host: TestProjectHost, targetSpec: TargetSpecifier, diff --git a/packages/angular_devkit/architect/testing/test-logger.ts b/packages/angular_devkit/architect/testing/test-logger.ts index cda17fad250c..d79ddf680935 100644 --- a/packages/angular_devkit/architect/testing/test-logger.ts +++ b/packages/angular_devkit/architect/testing/test-logger.ts @@ -9,6 +9,9 @@ import { logging } from '@angular-devkit/core'; +/** + * @deprecated + */ export class TestLogger extends logging.Logger { private _latestEntries: logging.LogEntry[] = []; constructor(name: string, parent: logging.Logger | null = null) { diff --git a/packages/angular_devkit/architect/testing/test-project-host.ts b/packages/angular_devkit/architect/testing/test-project-host.ts index 82b75036cf56..f8766c3a8260 100644 --- a/packages/angular_devkit/architect/testing/test-project-host.ts +++ b/packages/angular_devkit/architect/testing/test-project-host.ts @@ -22,6 +22,9 @@ import { EMPTY, Observable, from, of } from 'rxjs'; import { concatMap, delay, finalize, map, mergeMap, retry, tap } from 'rxjs/operators'; +/** + * @deprecated + */ export class TestProjectHost extends NodeJsSyncHost { private _currentRoot: Path | null = null; private _scopedSyncHost: virtualFs.SyncDelegateHost | null = null;