to.have.type() not recognized
dschinkel opened this issue · 0 comments
dschinkel commented
I've got a testHelpers file that contains the following amongst other things that I've stripped out for this issue just to simplify what I'm showing:
test.helpers
import chai, { expect } from 'chai';
import chaiEnzyme from 'chai-enzyme';
chai.use(chaiEnzyme());
export {
expect,
};
I'm trying to use to.have.type() but get the error TypeError: (0 , _test.expect)(...).to.have.type is not a function
:
some.spec.js
import { expect } from 'test/test.helpers';
//further down:
it.only('renders a 500 error', () => {
//...some code and then:
expect(error).to.have.type(Error500);
});
so not sure what I'm missing here.