https://pulumi.com logo
Title
l

limited-rainbow-51650

05/21/2021, 10:07 AM
Hello, trying to get some unit tests running. I base myself on this example: https://github.com/pulumi/examples/blob/master/testing-unit-ts/ec2tests.ts Although I invoke the
done
function in both paths of my
if-else
, I still get this error:
Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/r.de.smet/Projects/pulumi-libs/test/gcp/network/index.spec.ts)
The only difference I have is that I use
ts-mocha
rather than
mocha -r ts-node/register