Skip to content

How to trigger ROOT_EFFECTS_INIT event in ngrx unit test #3626

Answered by timdeschryver
tirelyl asked this question in Q&A
Discussion options

You must be logged in to vote

That's because ROOT_EFFECTS_INIT is just a string, you need to create an action of it so that the effect picks it up.

For example with

actions$ = of({type: ROOT_EFFECTS_INIT});

Or, you can use rootEffectsInit which is the action with ROOT_EFFECTS_INIT as its type.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tirelyl
Comment options

Answer selected by tirelyl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants