You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perhaps I am wrong but I was under the impression that when there is an error initalizing flagsmith, the onError call back is called. Here is my step, which on purpose doesn't have envrionment Id.
handleFlagsError has logic depending on the envrionment that I want to confirm with a unit test. The following is the code:
I don't see console from handleFlagsError but I do see Please specify a environment id which is thrown out I believe by flagsmith itself. I was hoping to see simply:
'reached error handler'
hope I made sense.
The text was updated successfully, but these errors were encountered:
Hey @sammysium, sure that makes sense. I'll look at having it trigger the onError too, this was originally intended for errors during flag retrieval but I see your point.
Perhaps I am wrong but I was under the impression that when there is an error initalizing flagsmith, the onError call back is called. Here is my step, which on purpose doesn't have envrionment Id.
handleFlagsError has logic depending on the envrionment that I want to confirm with a unit test. The following is the code:
now I understand envrionment ID is required but i am not seeing logs in my console. Now in my test I am doing:
I don't see console from handleFlagsError but I do see Please specify a environment id which is thrown out I believe by flagsmith itself. I was hoping to see simply:
'reached error handler'
hope I made sense.
The text was updated successfully, but these errors were encountered: