Gathering detailed insights and metrics for redux-mock-store-jasmine
Gathering detailed insights and metrics for redux-mock-store-jasmine
Gathering detailed insights and metrics for redux-mock-store-jasmine
Gathering detailed insights and metrics for redux-mock-store-jasmine
A mock store for testing Redux async action creators and middleware.
npm install redux-mock-store-jasmine
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
2,502 Stars
140 Commits
149 Forks
19 Watchers
4 Branches
39 Contributors
Updated on Jul 03, 2025
Latest Version
0.0.1
Package Id
redux-mock-store-jasmine@0.0.1
Size
3.48 kB
NPM Version
3.3.12
Node Version
5.5.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
A mock store for your testing your redux async action creators and middleware. This is a fork of https://github.com/arnaudbenard/redux-mock-store, adding a check for done.fail so that this can also be used with Jasmine.
There is a pull request to the original repo with this change.
npm install redux-mock-store-jasmine --save-dev
1 2// actions.test.js 3 4import configureStore from 'redux-mock-store'; 5 6const middlewares = []; // add your middlewares like `redux-thunk` 7const mockStore = configureStore(middlewares); 8 9// Test in mocha 10it('should dispatch action', (done) => { 11 const getState = {}; // initial state of the store 12 const action = { type: 'ADD_TODO' }; 13 const expectedActions = [action]; 14 15 const store = mockStore(getState, expectedActions, done); 16 store.dispatch(action); 17})
Custom test function for actions can also be supplied, useful if your actions have a dynamic part.
1// Test in mocha 2it('should dispatch action', (done) => { 3 const getState = {}; // initial state of the store 4 const action = { type: 'ADD_TODO' }; 5 const expectedActions = [(incomingAction) => { 6 if (incomingAction.type !== 'ADD_TODO') { 7 throw Error('Expected action of type ADD_TODO'); 8 } 9 }]; 10 11 const store = mockStore(getState, expectedActions, done); 12 store.dispatch(action); 13})
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 10/18 approved changesets -- score normalized to 5
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
58 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More