Skip to content

Commit

Permalink
feat(@angular-devkit/core): deprecate @angular-devkit/architect/testing
Browse files Browse the repository at this point in the history
  • Loading branch information
hansl authored and alexeagle committed Jan 10, 2019
1 parent 32e230d commit 3dafcf4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/angular_devkit/architect/testing/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string> {
return new Promise((resolve, reject) => {
const u = Url.parse(url);
Expand Down
6 changes: 6 additions & 0 deletions packages/angular_devkit/architect/testing/run-target-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 3 additions & 0 deletions packages/angular_devkit/architect/testing/test-logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Stats> | null = null;
Expand Down

0 comments on commit 3dafcf4

Please sign in to comment.