Hey all, LOVING the project, been porting my infra...
# general
w
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
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
ah good call, that’s perfect, thanks