Host.delete() completes but never emits #14235
Labels
area: @angular-devkit/core
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Milestone
🐞 Bug report
Command (mark with an
x
)Description
The observable returned by
Host.delete()
completes but never emits.🔬 Minimal Reproduction
With the following builder and
path
being a dir that existsthe output is:
notice that
delete:emit
andreturn:emit
never hitbut if the dir dosn't exist
the output is:
(with no error) notice that
return:emit
does hitIf the code path reaches
Host.delete()
the observable stream "short circuits" and completes immediately, causing themap(() => { return { success: true }; })
to never happen. Shouldn't it emitvoid
then complete if successful.🔥 Exception or Error
🌍 Your Environment
Anything else relevant?
The only workaround I found to work was
The text was updated successfully, but these errors were encountered: