I'm using react 14.3, babel 6.0.15 and react test utils addon 0.14.6 . Jasmine 2.3 is my testing framework of choice.
It seems as though any stateless function component cannot be tested by TestUtils.renderIntoComponent or TestUtils.createRenderer().render(). Either returns null when rendering the function component.
Test with any stateless function component and it should yield the same result.
Component:
import React from 'react';
const User = ({name, age}) => ( return <div>{name}, {age}</div> );
module.exports = User;
Test:
expect(TestUtils.renderIntoDocument(<User name={"bob"} age={20} />)).toBeTruthy();
Error:
Expected null to be truthy.