-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testing Error: this.actions$.ofType is not a function #173
Comments
Hello, I have the same issue :s Here is a the unit test of a router effect which works for me : test-helper.ts
router-effect.ts
router-effect.spec.ts
|
This issue is fixed in master via #121 |
@brandonroberts - Do you know when #121 is going to get into a tagged release? |
@adammartin1981 My quick and dirty way to fix this until it's tagged in a release was to just create my own file with the provideMockActions function and import from that file in my tests. Then in your tests just import from that file: // mytest.spec.ts |
Seems that the problem still not solved |
Hello,
I've been attempting follow the migration guide setting up specs for effects. However, I can't get the specs to work as outlined - I get
TypeError: this.actions$.ofType is not a function
.Here's a snippet of the test:
Here is full spec file: https://gist.github.com/d4hines/7b5fceb4a3eb53e050b9066800a02ccb
And Here is the full effects.ts file https://gist.github.com/d4hines/45749dcd69a8aef14a8b034aef1ba8a8
Why isn't
provideMockActions()
providing actual Actions? Am I doing something wrong is this an actual issue?The text was updated successfully, but these errors were encountered: