I’ve put together a small repo that shows how to test a React app with Velocity and Jasmine unit tests. Surprisingly the workflow is quite nice! (note Meteor 1.2 will run these much faster).
https://github.com/AdamBrodzinski/react-meteor-tests
describe("Counter Component", function() {
....
it("should have default foo prop", function() {
renderWithProps({});
expect(component.props.foo).toBe(true);
});
it("should toggle hidden state", function() {
renderWithProps({});
component.toggleHidden();
expect(component.state.isHidden).toBe(true);
});
....
});