
Product
Reachability for Ruby Now in Beta
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.
tape-jsx-extensions
Advanced tools
Tape extensions collection to make React component easier to test.
$ npm install --save-dev extend-tape
$ npm install --save-dev tape-jsx-extensions
Testing React components is very easy with tape + tape-jsx-extensions:
const MyComponent = function ({color}) {
const className = `box color-${color}`;
return (
<div className={className}></div>
);
};
import {createRenderer} from 'react-addons-test-utils';
import tape from 'tape';
import addAssertions from 'extend-tape';
import jsxExtensions from 'tape-jsx-extensions';
import MyComponent from '../MyComponent';
// extend tape with jsx extensions:
const test = addAssertions(tape, jsxExtensions);
test('MyComponent is properly rendered', (t) => {
const renderer = createRenderer();
renderer.render(<MyComponent color="red" />);
const result = renderer.getRenderOutput();
// compare output with the expected result:
t.jsxEquals(result, <div className="box color-red"></div>);
t.end();
});
$ npm install
$ npm test
FAQs
Colection of tape assertion to work with JSX
We found that tape-jsx-extensions demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Product
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.

Research
/Security News
Malicious npm packages use Adspect cloaking and fake CAPTCHAs to fingerprint visitors and redirect victims to crypto-themed scam sites.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.