{"id":28764954,"url":"https://github.com/klen/redux-testing","last_synced_at":"2026-05-18T04:41:27.934Z","repository":{"id":57351739,"uuid":"113443340","full_name":"klen/redux-testing","owner":"klen","description":"A library to testing your redux applications","archived":false,"fork":false,"pushed_at":"2022-02-19T13:09:24.000Z","size":599,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-08-24T21:14:32.320Z","etag":null,"topics":["redux","testing"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/klen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-07T11:36:54.000Z","updated_at":"2022-02-09T12:35:14.000Z","dependencies_parsed_at":"2022-09-19T16:21:15.945Z","dependency_job_id":null,"html_url":"https://github.com/klen/redux-testing","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/klen/redux-testing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klen%2Fredux-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klen%2Fredux-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klen%2Fredux-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klen%2Fredux-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/klen","download_url":"https://codeload.github.com/klen/redux-testing/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klen%2Fredux-testing/sbom","scorecard":{"id":563361,"data":{"date":"2025-08-11","repo":{"name":"github.com/klen/redux-testing","commit":"b0662afab6f68230880ec29c25a88f96f45ce133"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/klen/redux-testing/build.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/klen/redux-testing/build.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/klen/redux-testing/test.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/klen/redux-testing/test.yml/develop?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'develop'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"14 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T14:17:01.825Z","repository_id":57351739,"created_at":"2025-08-20T14:17:01.825Z","updated_at":"2025-08-20T14:17:01.825Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274039309,"owners_count":25211901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["redux","testing"],"created_at":"2025-06-17T10:13:04.095Z","updated_at":"2026-05-18T04:41:27.892Z","avatar_url":"https://github.com/klen.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# redux-testing\n\n[![Tests](https://github.com/klen/redux-testing/actions/workflows/test.yml/badge.svg)](https://github.com/klen/redux-testing/actions/workflows/test.yml)\n[![Build](https://github.com/klen/redux-testing/actions/workflows/build.yml/badge.svg)](https://github.com/klen/redux-testing/actions/workflows/build.yml)\n[![npm version](https://badge.fury.io/js/redux-testing.svg)](https://badge.fury.io/js/redux-testing)\n\nA library to testing your [Redux](https://reduxjs.org) application.\n\nFeatures:\n\n* Reset store's state\n* Update any part of store's state\n* Record and check recorded actions\n\n## Installation\n\n```bash\nnpm install --save-dev redux-testing\n```\n\n## Initialization\n\nFirst you have to install `testEnhancer` to your store:\n\n```javascript\nimport { createStore } from 'redux'\nimport testEnhancer from 'redux-testing'\n\n// A simple reducer for an example\nconst reducer = (state = 0, action) =\u003e {\n    switch (action.type) {\n    case 'INCREMENT':\n        return state + 1;\n    case 'DECREMENT':\n        return state - 1;\n    default:\n        return state;\n    }\n};\n\n// Initialize a store with the testEnhancer\nconst store = createStore(reducer, undefined, testEnhancer)\n```\n\nIf you are using middlewares or other enhancers\n\n```javascript\nimport { createStore, compose, applyMiddleware } from 'redux'\n\n// Prepare middlewares\nlet enhancer = applyMiddleware(middleware1, middleware2)\n\n// Optionally apply the testEnhancer for testing\nif (process.env.NODE_ENV == 'DEVELOPMENT') enhancer = compose(testEnhancer, enhancer)\n\n// Initialize a store with the enhancer\nconst store = createStore(reducer, undefined, enhancer)\n```\n\nFor correct usage with [redux-thunk](https://github.com/reduxjs/redux-thunk)\nadd `import 'redux-thunk/extend-redux'` to your store file.\n\n## Usage\n\n### Reset store\n\nReset you store and actions log any time:\n\n```javascript\n// Lets make some actions\nstore.dispatch({ type: 'INCREMENT' })\nstore.dispatch({ type: 'INCREMENT' })\nstore.dispatch({ type: 'DECREMENT' })\n\n// State has been changed\nexpect(store.getState()).toBe(1) // 0 + 1 + 1 - 1 = 1\n\nstore.reset()\n\nexpect(store.getState()).toBe(0) // initial state\n```\n\n### Update store state\n\nCustomize your store state:\n\n```javascript\nstore.update(42)\nexpect(store.getState()).toBe(42)\n\n/** Other examples\n*\n* // Update by object\n* store.update({deep: {child: {state: { value: 42}}}})\n*\n* // Update by path\n* store.update(42, 'deep.child.state.value')\n*/\n```\n\n#### Using with [Immer](https://github.com/immerjs/immer)\n\nImmer freezes your state. If you want to `store.update` is working, be sure\nthat you have disable the autofreezing in your tests.\n\n```javascript\n// Setup tests globally\nimport { setAutoFreeze } from 'immer'\n\nsetAutoFreeze(false)\n```\n\n### Get recorded actions\n\n```javascript\n// Lets make some actions\nstore.dispatch({ type: 'INCREMENT' })\nstore.dispatch({ type: 'INCREMENT' })\nstore.dispatch({ type: 'DECREMENT' })\n\nconst actions = store.getActions()\nexpect(actions).toEqual([\n  {type: 'INCREMENT'}, {type: 'INCREMENT'}, {type: 'DECREMENT'}\n])\n\n```\n\n### Get an recorded action\n\n```javascript\n// Lets make some actions\nstore.dispatch({ type: 'INCREMENT' });\nstore.dispatch({ type: 'INCREMENT' });\nstore.dispatch({ type: 'DECREMENT' });\n\nlet action;\n\n// Get latest action\naction = store.getAction();\nexpect(action).toEqual({ type: 'DECREMENT' });\n\n// Get action by index\naction = store.getAction(0);\nexpect(action).toEqual({ type: 'INCREMENT' });\naction = store.getAction(2);\nexpect(action).toEqual({ type: 'DECREMENT' });\n\n// Get relative action\naction = store.getAction(-1); // previous before latest\nexpect(action).toEqual({ type: 'INCREMENT' });\naction = store.getAction(-2); // previous before above\nexpect(action).toEqual({ type: 'INCREMENT' });\n```\n\n### Clear actions\n\n```javascript\n// Lets make some actions\nstore.dispatch({ type: 'INCREMENT' });\nstore.dispatch({ type: 'INCREMENT' });\nstore.dispatch({ type: 'DECREMENT' });\n\n// Ensure that we have actions recorded\nexpect(store.getActions()).toBeTruthy();\n\n// Reset the recorded actions\nstore.clearActions();\n\n// Ensure that we have cleared the records\nexpect(store.getActions()).toEqual([]);\n\n\n```\n\n## License\n\nThis project is licensed under the MIT license, Copyright (c) 2017 Kirill Klenov. For more information see `LICENSE.md`.\n\n## Acknowledgements\n\n[Dan Abramov](https://github.com/gaearon) for Redux\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklen%2Fredux-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fklen%2Fredux-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklen%2Fredux-testing/lists"}