feat(angular): support application builder for cypress component testing (#20214)
Signed-off-by: Pascal Küsgen <pascalkuesgen@gmail.com>
This commit is contained in:
parent
94143a8734
commit
5bf1a928e7
@ -295,8 +295,8 @@ Note: this may fail, setting the correct 'sourceRoot' for ${buildContext.project
|
|||||||
}
|
}
|
||||||
|
|
||||||
function withSchemaDefaults(options: any): BrowserBuilderSchema {
|
function withSchemaDefaults(options: any): BrowserBuilderSchema {
|
||||||
if (!options.main) {
|
if (!options.main && !options.browser) {
|
||||||
throw new Error('Missing executor options "main"');
|
throw new Error('Missing executor options "main" and "browser"');
|
||||||
}
|
}
|
||||||
if (!options.index) {
|
if (!options.index) {
|
||||||
throw new Error('Missing executor options "index"');
|
throw new Error('Missing executor options "index"');
|
||||||
@ -322,6 +322,7 @@ function withSchemaDefaults(options: any): BrowserBuilderSchema {
|
|||||||
options.outputHashing ??= 'none';
|
options.outputHashing ??= 'none';
|
||||||
options.progress ??= true;
|
options.progress ??= true;
|
||||||
options.scripts ??= [];
|
options.scripts ??= [];
|
||||||
|
options.main = options.main ??= options.browser;
|
||||||
|
|
||||||
return options;
|
return options;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user