@angular-devkit/schematics-cli 15.1.0-next.1 → 15.1.0-next.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,9 +7,7 @@ const collectionPath = path.join(__dirname, '../collection.json');
7
7
  describe('<%= dasherize(name) %>', () => {
8
8
  it('works', async () => {
9
9
  const runner = new SchematicTestRunner('schematics', collectionPath);
10
- const tree = await runner
11
- .runSchematicAsync('<%= dasherize(name) %>', {}, Tree.empty())
12
- .toPromise();
10
+ const tree = await runner.runSchematic('<%= dasherize(name) %>', {}, Tree.empty());
13
11
 
14
12
  expect(tree.files).toEqual([]);
15
13
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-devkit/schematics-cli",
3
- "version": "15.1.0-next.1",
3
+ "version": "15.1.0-next.3",
4
4
  "description": "Angular Schematics - CLI",
5
5
  "homepage": "https://github.com/angular/angular-cli",
6
6
  "bin": {
@@ -21,8 +21,8 @@
21
21
  ],
22
22
  "schematics": "./collection.json",
23
23
  "dependencies": {
24
- "@angular-devkit/core": "15.1.0-next.1",
25
- "@angular-devkit/schematics": "15.1.0-next.1",
24
+ "@angular-devkit/core": "15.1.0-next.3",
25
+ "@angular-devkit/schematics": "15.1.0-next.3",
26
26
  "ansi-colors": "4.1.3",
27
27
  "inquirer": "8.2.4",
28
28
  "symbol-observable": "4.0.0",
@@ -10,15 +10,13 @@ describe('my-full-schematic', () => {
10
10
  // We test that
11
11
  const runner = new SchematicTestRunner('schematics', collectionPath);
12
12
  await expectAsync(
13
- runner.runSchematicAsync('my-full-schematic', {}, Tree.empty()).toPromise(),
13
+ runner.runSchematic('my-full-schematic', {}, Tree.empty())
14
14
  ).toBeRejected();
15
15
  });
16
16
 
17
17
  it('works', async () => {
18
18
  const runner = new SchematicTestRunner('schematics', collectionPath);
19
- const tree = await runner
20
- .runSchematicAsync('my-full-schematic', { name: 'str' }, Tree.empty())
21
- .toPromise();
19
+ const tree = await runner.runSchematic('my-full-schematic', { name: 'str' }, Tree.empty());
22
20
 
23
21
  // Listing files
24
22
  expect(tree.files.sort()).toEqual(['/allo', '/hola', '/test1', '/test2']);
@@ -7,7 +7,7 @@ const collectionPath = path.join(__dirname, '../collection.json');
7
7
  describe('my-other-schematic', () => {
8
8
  it('works', async () => {
9
9
  const runner = new SchematicTestRunner('schematics', collectionPath);
10
- const tree = await runner.runSchematicAsync('my-other-schematic', {}, Tree.empty()).toPromise();
10
+ const tree = await runner.runSchematic('my-other-schematic', {}, Tree.empty());
11
11
 
12
12
  expect(tree.files.sort()).toEqual(['/allo', '/hola']);
13
13
  });
@@ -7,7 +7,7 @@ const collectionPath = path.join(__dirname, '../collection.json');
7
7
  describe('my-schematic', () => {
8
8
  it('works', async () => {
9
9
  const runner = new SchematicTestRunner('schematics', collectionPath);
10
- const tree = await runner.runSchematicAsync('my-schematic', {}, Tree.empty()).toPromise();
10
+ const tree = await runner.runSchematic('my-schematic', {}, Tree.empty());
11
11
 
12
12
  expect(tree.files).toEqual(['/hello']);
13
13
  });