Skip to content

Instantly share code, notes, and snippets.

View adjavaherian's full-sized avatar
✌️
💾 🔧 ⚾️

Amir Djavaherian adjavaherian

✌️
💾 🔧 ⚾️
View GitHub Profile
@adjavaherian
adjavaherian / Analytics.jsx
Last active December 13, 2017 15:33 — forked from fredrick/App-example-test.js
Here's how we have been pre-processing Jest tests for React.js components which require React-Router or Fluxxor.
//./app/modules/Analytics.jsx
var React = require('react');
var Fluxxor = require('fluxxor');
var FluxMixin = Fluxxor.FluxMixin(React);
var paths = require('../helpers/paths');
var Analytics = React.createClass({
displayName: 'Analytics',
mixins: [FluxMixin],