Chris
04/26/2024, 2:11 AMMatt (pactflow.io / pact-js / pact-go)
Chris
04/26/2024, 2:23 AMMatt (pactflow.io / pact-js / pact-go)
Chris
04/26/2024, 2:55 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
client
is a way to do “DI” to this function:
someFunctionThatNeedsToCallAPI(client: APIClientInterface) => whatever
NextJS shouldn’t prevent this sort of thing.
Perhaps the code base isn’t set in a way like this (modular so that things can be tested etc. independently of one another), which is a code smell in its own right IMO.Matt (pactflow.io / pact-js / pact-go)
Chris
04/26/2024, 4:04 AM