How to test NgRx (v22) effects using vitest?
I've been using RxJs and Angular for a long time now, and was very comfortable with it. Then Angular v22 came along and broke my world. Specifically, it broke how I understood testing things like effects. Previously, I would create a jasmine SpyObj for an HTTP service object, use jasmine-marbles to define the flow, and then test my expectations, like this: describe('loading the current user', () => { it('fires an action on success', () => { const serviceResponse = USER; const action = loadCurrentUser(); const outcome1 = loadCurrentUserSuccess({ user: USER }); const outcome2 = setReadComics({ e
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.