chore: bump @puppeteer/ng-schematics versions (#10200)

This commit is contained in:
Nikolay Vitkov 2023-06-02 10:37:36 +02:00 committed by GitHub
parent 6e39a2eb1d
commit 60229810c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1409 additions and 714 deletions

2074
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -166,7 +166,7 @@
"esprima": "4.0.1", "esprima": "4.0.1",
"expect": "29.4.3", "expect": "29.4.3",
"glob": "8.1.0", "glob": "8.1.0",
"gts": "4.0.0", "gts": "4.0.1",
"husky": "8.0.3", "husky": "8.0.3",
"jpeg-js": "0.4.4", "jpeg-js": "0.4.4",
"license-checker": "25.0.1", "license-checker": "25.0.1",

View File

@ -47,14 +47,15 @@
"node": ">=16.3.0" "node": ">=16.3.0"
}, },
"dependencies": { "dependencies": {
"@angular-devkit/architect": "^0.1600.2", "@angular-devkit/architect": "^0.1600.4",
"@angular-devkit/core": "^16.0.1", "@angular-devkit/core": "^16.0.4",
"@angular-devkit/schematics": "^15.2.7" "@angular-devkit/schematics": "^16.0.4"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^16.11.7", "@types/node": "^16.11.7",
"@schematics/angular": "^14.2.8", "@schematics/angular": "^16.0.4",
"@angular/cli": "^15.2.2" "@angular/cli": "^16.0.4",
"rxjs": "7.8.1"
}, },
"files": [ "files": [
"lib", "lib",

View File

@ -5,7 +5,7 @@ import {JsonObject} from '@angular-devkit/core';
import { import {
SchematicTestRunner, SchematicTestRunner,
UnitTestTree, UnitTestTree,
} from '@angular-devkit/schematics/testing/schematic-test-runner'; } from '@angular-devkit/schematics/testing';
import expect from 'expect'; import expect from 'expect';
import sinon from 'sinon'; import sinon from 'sinon';
@ -65,26 +65,20 @@ async function buildTestingTree(userOptions?: Record<string, any>) {
let workingTree: UnitTestTree; let workingTree: UnitTestTree;
// Build workspace // Build workspace
workingTree = await runner workingTree = await runner.runExternalSchematic(
.runExternalSchematicAsync(
'@schematics/angular', '@schematics/angular',
'workspace', 'workspace',
WORKSPACE_OPTIONS WORKSPACE_OPTIONS
) );
.toPromise();
// Build dummy application // Build dummy application
workingTree = await runner workingTree = await runner.runExternalSchematic(
.runExternalSchematicAsync(
'@schematics/angular', '@schematics/angular',
'application', 'application',
APPLICATION_OPTIONS, APPLICATION_OPTIONS,
workingTree workingTree
) );
.toPromise();
return await runner return await runner.runSchematic('ng-add', options, workingTree);
.runSchematicAsync('ng-add', options, workingTree)
.toPromise();
} }
describe('@puppeteer/ng-schematics: ng-add', () => { describe('@puppeteer/ng-schematics: ng-add', () => {