mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 02:54:21 +08:00
The `noImplicitOverride` TypeScript option improves code quality by ensuring that properties from base classes are not accidentally overriden. Reference: https://www.typescriptlang.org/tsconfig#noImplicitOverride
35 lines
1.0 KiB
TypeScript
35 lines
1.0 KiB
TypeScript
/**
|
|
* @license
|
|
* Copyright Google LLC 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
|
|
*/
|
|
|
|
import { ArchitectCommand } from '../models/architect-command';
|
|
import { Arguments } from '../models/interface';
|
|
import { Schema as E2eCommandSchema } from './e2e';
|
|
|
|
export class E2eCommand extends ArchitectCommand<E2eCommandSchema> {
|
|
public override readonly target = 'e2e';
|
|
public override readonly multiTarget = true;
|
|
public override readonly missingTargetError = `
|
|
Cannot find "e2e" target for the specified project.
|
|
|
|
You should add a package that implements end-to-end testing capabilities.
|
|
|
|
For example:
|
|
Cypress: ng add @cypress/schematic
|
|
Nightwatch: ng add @nightwatch/schematics
|
|
WebdriverIO: ng add @wdio/schematics
|
|
|
|
More options will be added to the list as they become available.
|
|
`;
|
|
|
|
override async initialize(options: E2eCommandSchema & Arguments) {
|
|
if (!options.help) {
|
|
return super.initialize(options);
|
|
}
|
|
}
|
|
}
|