function (in my case an API endpoint) that sends data to some other endpoint(in my case to myself through a telegram bot) how would you handle testing of that method ? would you alllow a special parameter to detect that its a test and not send that information to the external service ? Otherwise it would be quite spammy so I thought about passing a special header and detecting that....would you say this is good practice ?
Which language?
dev environment
I'd mock the other endpoint
Обсуждают сегодня