This repo was used in giving presentations at MelbJs and the Melbourne React Meetup in January and February 2019.
See the presentation notes for more details - though they're pretty scrappy, really for my eyes.
Three source folders:
This demonstrates a basic react/redux application - that uses redux-thunk for making the API calls.
It demonstrates how we might test the thunks.
Three tests fail:
- One because it anonymous functions can't be compared for equality
- Another test that shows that boiled down.
- Another that demonstrates that you can't mock functions in the same module.
This reproduces the same application - but using redux-saga as the middleware.
It demonstrates much simpler working tests.