Skip to content

Commit d3e2267

Browse files
clydinmgechev
authored andcommitted
test(@angular-devkit/build-ng-packagr): use stable workspace API
1 parent 991599c commit d3e2267

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/angular_devkit/build_ng_packagr/src/build/index_spec_large.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import { Architect } from '@angular-devkit/architect';
99
import { WorkspaceNodeModulesArchitectHost } from '@angular-devkit/architect/node';
1010
import { TestProjectHost, TestingArchitectHost } from '@angular-devkit/architect/testing';
1111
import {
12-
experimental,
1312
join,
1413
normalize,
1514
schema,
1615
virtualFs,
16+
workspaces,
1717
} from '@angular-devkit/core'; // tslint:disable-line:no-implicit-dependencies
1818
import { map, take, tap } from 'rxjs/operators';
1919

@@ -33,7 +33,10 @@ describe('NgPackagr Builder', () => {
3333
const registry = new schema.CoreSchemaRegistry();
3434
registry.addPostTransform(schema.transforms.addUndefinedDefaults);
3535

36-
const workspace = await experimental.workspace.Workspace.fromPath(host, host.root(), registry);
36+
const { workspace } = await workspaces.readWorkspace(
37+
host.root(),
38+
workspaces.createWorkspaceHost(host),
39+
);
3740
const architectHost = new TestingArchitectHost(
3841
host.root(),
3942
host.root(),

0 commit comments

Comments
 (0)