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

Requiring this package as a dependency fails #182

Closed
crs1138 opened this issue Aug 23, 2023 · 5 comments
Closed

Requiring this package as a dependency fails #182

crs1138 opened this issue Aug 23, 2023 · 5 comments

Comments

@crs1138
Copy link

crs1138 commented Aug 23, 2023

Expected Behaviour

var cssTools = require('@adobe/css-tools');

This should let me use cssTools.parse().

Actual Behaviour

When trying to use matchers from @testing-library/jest-dom I get the following error message:
Cannot find module '@adobe/css-tools' from 'node_modules/@testing-library/jest-dom/dist/matchers-d012a0f1.js'

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

@hsavit1
Copy link

hsavit1 commented Aug 23, 2023

getting the same error

@holblin
Copy link

holblin commented Aug 24, 2023

Hi,

Could you confirm which exact version of the package is installed?
I believe it might not be the latest version (which fixes some very similar issues).

Best regards,

@hsavit1
Copy link

hsavit1 commented Aug 24, 2023

@holblin this got fixed for me today with the 6.1.2 update of the jest-marchers

@holblin
Copy link

holblin commented Aug 24, 2023

Perfect and thanks for the info! I understand the issue a little bit better now 👍
I'll wait a day or two for @crs1138 confirmation and will close if he confirms or if there are no new messages :-)

For reference: testing-library/jest-dom#525

@crs1138
Copy link
Author

crs1138 commented Aug 25, 2023

Hi there. Thank you for following this up. I can confirm that the v6.1.2 of @testing-library/jest-dom - works correctly. You can dismiss my PR.

@holblin holblin closed this as completed Aug 26, 2023
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

3 participants