mardi 4 août 2015

Jest not printing test results after react is imported

I'm writing tests for react. But when I require react, jest just prints Waiting on 1 test..., and then finishes without telling me the result of the test.

jest.dontMock('../src/scripts/components/register/Register.jsx');

describe('Register', function () {
    it('Should validate', function () {
        var React = require('react/addons');
        var Register = require('../src/scripts/components/register/Register.jsx');
        // var TestUtils = React.addons.TestUtils;
        //
        // var register = TestUtils.renderIntoDocument(
        //     <Register/>
        // )
        expect(true).toBe(false);
    })
})

Aucun commentaire:

Enregistrer un commentaire