Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
redux-devtools-test-generator
Advanced tools
npm install --save-dev redux-devtools-test-generator
If you use Redux DevTools Extension, Remote Redux DevTools or RemoteDev, it's already there, and no additional actions required.
With redux-devtools
and redux-devtools-inspector
:
containers/DevTools.js
import React from 'react';
import { createDevTools } from 'redux-devtools';
import Inspector from 'redux-devtools-inspector';
import TestGenerator from 'redux-devtools-test-generator';
import mochaTemplate from 'redux-devtools-test-generator/lib/redux/mocha'; // If using default tests.
const testComponent = (props) => (
<TestGenerator
expect={mochaTemplate.expect} wrap={mochaTemplate.wrap} useCodemirror
{...props}
/>
);
export default createDevTools(
<Inspector
tabs: defaultTabs => [...defaultTabs, { name: 'Test', component: testComponent }]
/>
);
Instead of mochaTemplate.expect
and mochaTemplate.wrap
you can use your function templates.
If useCodemirror
specified, include codemirror/lib/codemirror.css
style and optionally themes from codemirror/theme/
.
Name | Description |
---|---|
assertion | String template or function with an object argument containing action , prevState , curState keys, which returns a string representing the assertion (see the function or template). |
[wrap ] | Optional string template or function which gets assertions argument and returns a string (see the example function or template). |
[useCodemirror ] | Boolean. If specified will use codemirror styles. |
[theme ] | String. Name of the codemirror theme. |
MIT
FAQs
Generate tests for redux devtools.
The npm package redux-devtools-test-generator receives a total of 56 weekly downloads. As such, redux-devtools-test-generator popularity was classified as not popular.
We found that redux-devtools-test-generator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.