puppeteer/packages/ng-schematics/tools/smoke.mjs
2023-12-18 14:55:52 +00:00

22 lines
566 B
JavaScript

/**
* @license
* Copyright 2023 Google Inc.
* SPDX-License-Identifier: Apache-2.0
*/
import {execSync} from 'child_process';
import {AngularProjectMulti, AngularProjectSingle} from './projects.mjs';
if (process.env.CI) {
// Need to install in CI
execSync('npm install -g @angular/cli@latest');
execSync('npm install -g @angular-devkit/schematics-cli');
}
const single = new AngularProjectSingle();
const multi = new AngularProjectMulti();
await Promise.all([single.create(), multi.create()]);
await Promise.all([single.runSmoke(), multi.runSmoke()]);