https://pulumi.com logo
#general
Title
# general
w

witty-yacht-82771

10/28/2019, 5:43 PM
Hey all, LOVING the project, been porting my infra over to it as fast as I can. Question (I don’t write much JS/TS ordinarily): is there a cleaner way to make variables from the main
index.ts
available for testing? I’m currently exporting them as needed and importing in my tests, but obviously that really clutters up each stack’s output variables.
w

white-balloon-205

10/28/2019, 5:45 PM
What kind of testing are you doing? If you don't need them to be stack outputs, you can move your implementation into a separate file, export everything you want for testing purposes from that, and then import that into
index.ts
and only export the things you want to be stack exports from that. Whether that makes sense or not depends on how you want to structure your testing.
w

witty-yacht-82771

10/28/2019, 5:46 PM
ah good call, that’s perfect, thanks