This sounds like you're treating your Pulumi project as a unit. Speaking from experience, this isn't going to be easy, and it's not the intended use of unit tests. Projects aren't smallest-feasible-functional-units, which is what you should be targettng in unit tests.