forked from angular/angular-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnode-workflow_spec.ts
More file actions
26 lines (23 loc) · 888 Bytes
/
Copy pathnode-workflow_spec.ts
File metadata and controls
26 lines (23 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// tslint:disable:no-implicit-dependencies
import { NodeJsSyncHost } from '@angular-devkit/core/node';
import { NodeWorkflow } from '@angular-devkit/schematics/tools';
import * as path from 'path';
describe('NodeWorkflow', () => {
// TODO: this test seems to either not work on windows or on linux.
xit('works', done => {
const workflow = new NodeWorkflow(new NodeJsSyncHost(), { dryRun: true });
const collection = path.join(__dirname, '../../../../schematics/angular/package.json');
workflow.execute({
collection,
schematic: 'ng-new',
options: { name: 'workflow-test', version: '6.0.0-rc.4' },
}).toPromise().then(done, done.fail);
});
});