Skip to content

Instantly share code, notes, and snippets.

@lotif
Last active June 17, 2017 02:13
Show Gist options
  • Save lotif/a78b948bfa20a7fd670982279ae885ae to your computer and use it in GitHub Desktop.
Save lotif/a78b948bfa20a7fd670982279ae885ae to your computer and use it in GitHub Desktop.
before each for integration tests
describe('integration tests', () => {
let store;
let dispatchSpy;
let router;
beforeEach(() => {
router = {
params: { myParam: 'any-params-you-have' },
};
({ store, dispatchSpy } = setupIntegrationTest({ myReducer }, router));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment