We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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:
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.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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
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
so not sure what I'm missing here.
The text was updated successfully, but these errors were encountered: