:wave: Hi everyone! Im new here :slightly_smiling_...
# general
h
👋 Hi everyone! Im new here 🙂 At my company we are starting to use Pulumi to define some infrastructure in AWS. We are writing some unit tests for the Infra code, and we are running into an issue because we also want to test the error paths for our functions (We are using Go). Basically, we want to be able to trigger an error after doing something like
cluster, err := ecs.NewCluster()
. We tried adding a return error in the
NewResource
mock but that doesnt seem to be working. Is there any preferred way of handling those types of tests or are we missing something obvious? Was unable to find anything related to that in the docs. Thanks all! Really appreciate the work being done here 🙂