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

Cannot import extend-expect as per README. #27

Closed
antsmartian opened this issue Mar 29, 2018 · 3 comments
Closed

Cannot import extend-expect as per README. #27

antsmartian opened this issue Mar 29, 2018 · 3 comments

Comments

@antsmartian
Copy link
Collaborator

Hello @kentcdodds ,

In the README, we have specified that we could use the extend assertions by importing:

import 'react-testing-library/extend-expect'

infact this throws an error:

  Cannot find module 'react-testing-library/extend-expect' from 'HelpTest.js'

only the below works:

import 'react-testing-library/dist/extend-expect'

Will debug this and let you know whats happening here.

@kentcdodds
Copy link
Member

We forgot to add the file to the package.json files list.

@antsmartian
Copy link
Collaborator Author

@kentcdodds Exactly, will raise a PR in sometime.

@antsmartian
Copy link
Collaborator Author

Closing this with reference to : #28

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

2 participants