sparse-intern-71089
11/02/2021, 11:10 AMlittle-cartoon-10569
11/02/2021, 8:05 PMlittle-cartoon-10569
11/02/2021, 8:08 PMpromise()
to Output
.
3. Write all expects thus: return expect(myOutput.promise()).to.eventually.include(expectedValue)
little-cartoon-10569
11/02/2021, 8:09 PMit()
needs to be async
, and the result of the expect()
needs to be returned from it.little-cartoon-10569
11/02/2021, 8:10 PMpromise()
to Output
is:
declare module '@pulumi/pulumi' {
export interface OutputInstance<T> {
promise(withUnknowns?: boolean): Promise<T>;
}
}
limited-rainbow-51650
11/03/2021, 11:06 AMlimited-rainbow-51650
11/09/2021, 3:26 PMlittle-cartoon-10569
11/09/2021, 7:06 PM