Skip to content
New issue

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

to.have.type() not recognized #197

Open
dschinkel opened this issue Sep 22, 2017 · 0 comments
Open

to.have.type() not recognized #197

dschinkel opened this issue Sep 22, 2017 · 0 comments

Comments

@dschinkel
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant