UNPKG

@git-temporal/git-temporal-react

Version:

<!-- START doctoc generated TOC please keep comment here to allow auto update --> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->

28 lines (27 loc) 700 B
jest.mock('app/actions', () => { const mockedActions = {}; const actionsToMock = [ 'selectPath', 'invalidatePath', 'requestCommits', 'receiveCommits', 'fetchCommitsIfNeeded', 'setAuthorsContainerSort', 'setCommitsContainerSort', 'setFilesContainerSort', 'highlightCommits', 'viewCommits', 'viewFiles', 'setStartDate', 'setEndDate', 'setSearch', ]; for (const methodName of actionsToMock) { mockedActions[methodName] = jest.fn(path => { return jest.fn(() => { return path; }); }); } return mockedActions; });