letexpected=[json| {"errors":[{"extensions":{"data":{"msg":"This user is not team owner","user_id":1},"diagnostic":"User not authorized. ","type":"EC_403__user_not_authorized"},"message":"User not authorized. "}]} |]
Do we need a separate function here? If withTestDBWithTriggers is what we are always going to use, cannot we just call this simply withTestDB, removing the other (existing) function? Or do you envisage scenario where you want to call one but not the other?
Do we need a separate function here? If `withTestDBWithTriggers` is what we are always going to use, cannot we just call this simply `withTestDB`, removing the other (existing) function? Or do you envisage scenario where you want to call one but not the other?
Perhaps you could explain what to do in order to initialise the MasteruserEnv, like calling a particular function, for example?
An alternative approach to get rid of getMatserUserEnvOrFail would be to have two separate types, one for an UninitialisedTestEnv which would be given as input to setupEnvironment, so that you could write withTestDBWithTriggers as having signature UninitialisedEnv -> (TestEnv -> m a) -> m a or something like that.
Is that possible?
Perhaps you could explain what to do in order to initialise the `MasteruserEnv`, like calling a particular function, for example?
An alternative approach to get rid of `getMatserUserEnvOrFail` would be to have two separate types, one for an `UninitialisedTestEnv` which would be given as input to `setupEnvironment`, so that you could write `withTestDBWithTriggers` as having signature `UninitialisedEnv -> (TestEnv -> m a) -> m a` or something like that.
Is that possible?