1

I need to test the view of my application based on api response. That's why I need to set up the same cookie as for my app and for api call (eg. like to be the same unauthorised user).

I've tried to implement @react-native-community/cookies, but they needed to be mocked.

Is there a way of doing like that? Any ideas?

Darya
  • 11
  • 1
  • what is the problem with mocking API responses while testing? I think it's a standard approach to test your application. – nima Aug 27 '21 at 06:29
  • mocking is not suitable in our case – Darya Aug 27 '21 at 06:57
  • terms "test" and "mocking" are using together. please tell us why you are persisting in using real data in the test environment. – nima Aug 27 '21 at 07:01
  • my question was about is it possible to set cookie in detox, if u don't know how, I will be still waiting for someone's question. – Darya Aug 27 '21 at 08:18
  • I will be still waiting for someone's answer too. – nima Aug 27 '21 at 09:04

0 Answers0