✅ Adding tests for trading executor#32
Conversation
|
@mrsegen can I have some feedbacks on this one ? I have some issues with open handles with Jest since I've played with setInterval function and timers, maybe you have a workaround for it ? (try running |
|
So far I had some success with at least getting it to pass with If going with it, check the jest documentation for it. I think I put a Possible next steps, for subsequent iterations, if it makes sense for what's being tested:
|
|
@mrsegen thank you for the advices, your contributions are always highly appreciated 🙏 I'll try using statements in afterEach blocks this may fix the warnings. |
|
So far, when I went deeper with that, and even making tests of the exchange services, I've been running into a strange errors during testing: Something about node thinking SpotExchangeService is undefined in lines such as: Let me know if you run into that, and/or find a way around it. So far I've explored trying to address apparent circular dependencies. I haven't made much progress yet. |
No description provided.