Skip to content

Commit 811487f

Browse files
committed
refactor(@angular/cli): remove unused testing option
This option is never set and doesn't provide any value, since typically when one wants to debug, you add a `debugger` statement where needed or use the `break on exception` option in the debugger.
1 parent 5922649 commit 811487f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

packages/angular/cli/lib/cli/index.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { writeErrorToLogFile } from '../../src/utilities/log-file';
1717
export { VERSION } from '../../src/utilities/version';
1818

1919
/* eslint-disable no-console */
20-
export default async function (options: { testing?: boolean; cliArgs: string[] }) {
20+
export default async function (options: { cliArgs: string[] }) {
2121
// This node version check ensures that the requirements of the project instance of the CLI are met
2222
const [major, minor] = process.versions.node.split('.').map((part) => Number(part));
2323
if (major < 14 || (major === 14 && minor < 15)) {
@@ -80,12 +80,6 @@ export default async function (options: { testing?: boolean; cliArgs: string[] }
8080
logger.fatal('An unexpected error occurred: ' + JSON.stringify(err));
8181
}
8282

83-
if (options.testing) {
84-
// eslint-disable-next-line no-debugger
85-
debugger;
86-
throw err;
87-
}
88-
8983
return 1;
9084
}
9185
}

0 commit comments

Comments
 (0)