feat(angular): support application builder for cypress component testing (#20214)

Signed-off-by: Pascal Küsgen <pascalkuesgen@gmail.com>
This commit is contained in:
Pascal Küsgen 2023-11-16 04:08:45 -08:00 committed by GitHub
parent 94143a8734
commit 5bf1a928e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -295,8 +295,8 @@ Note: this may fail, setting the correct 'sourceRoot' for ${buildContext.project
}
function withSchemaDefaults(options: any): BrowserBuilderSchema {
if (!options.main) {
throw new Error('Missing executor options "main"');
if (!options.main && !options.browser) {
throw new Error('Missing executor options "main" and "browser"');
}
if (!options.index) {
throw new Error('Missing executor options "index"');
@ -322,6 +322,7 @@ function withSchemaDefaults(options: any): BrowserBuilderSchema {
options.outputHashing ??= 'none';
options.progress ??= true;
options.scripts ??= [];
options.main = options.main ??= options.browser;
return options;
}