Replies: 3 comments 15 replies
-
Hey @kyptov, I'm sorry to read that.
Yeah, I understand the v7 migration is rough. I was talking about this topic with a contributor of the project. I wish I could have done an easier major, the technical challenge of migrating the core logic to fix some critical issues was a lot to take. Having said that. I though about adding deprecated methods, but keeping some v6 typings that should have never been exposed was a nightmare to maintain. Which methods were removed and are not covered in the migration guide? Let me know and I'll have them a look to update the guide.
Not really, but my plans are not set in stone and I am receiving similar feedback from other users, so I will consider an |
Beta Was this translation helpful? Give feedback.
-
I have a codebase in v6 and it was very useful in testing to create a mock version of inversify container by taking a normal one and rebinding services I don't need. (This is of course for higher-level tests where entire request processing chain is tested. For unit tests on classes I use their constructors directly). I tried to up to v7 and immediately noticed how rebind is gone and I need to make the beforeEach'es async to mimic original behavior. Is there a better paradigm for testing with inversify available? |
Beta Was this translation helpful? Give feedback.
-
In previous versions, I was able to use Unit tests using v6 to reproduce the scenario: https://stackblitz.com/edit/vitest-dev-vitest-ktiytq2s?file=test%2Fbasic.test.ts This approach doesn't seem to work anymore in v7, and I can't find any documentation or migration guidance on how to access the context in the new version. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Some methods just disapperead, no mention in guide, no deprecated. Unbind became async - here I gave up, too much rewriting.
Do you have plans to implement sync version of bind?
Beta Was this translation helpful? Give feedback.
All reactions