Skip to content

Conversation

@lacolaco
Copy link
Contributor

@lacolaco lacolaco commented Jun 1, 2022

This implementation is just a prototype for an explanation.

Currently, example-app-karma is not working well as an integration test case because jasmine-matchers.ts is not loaded by test.ts.
I've tried to run tests correctly by renaming it to jasmine-matchers.spec.ts, but it failed.
The reason is the wrong setup to install custom matchers to Jasmine. I fixed it and now the specs are all green.

I think there are some ways to solve this problem.

  1. Keep example-app-karma and fix testing-library/jasmine-dom
  2. Fix example-app-karma with the workaround

@timdeschryver How do you think?

@timdeschryver
Copy link
Member

I think the changes made in this PR are sufficient.
Or does this still require more actions @lacolaco ?

@lacolaco
Copy link
Contributor Author

lacolaco commented Jun 1, 2022

@timdeschryver I think OK if you think it's OK. 👍

@timdeschryver
Copy link
Member

Thanks @lacolaco !

@timdeschryver timdeschryver merged commit 8868bfe into testing-library:main Jun 1, 2022
@lacolaco lacolaco deleted the fix-karma-example-jasmine-matchers branch June 1, 2022 12:30
@github-actions
Copy link

github-actions bot commented Jun 9, 2022

🎉 This PR is included in version 12.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants