FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

No longer bubble 'error' events from a-asset-items as these interfere with Karma by mrxz · Pull Request #5548 · aframevr/aframe · GitHub

No longer bubble 'error' events from a-asset-items as these interfere with Karma - #5548

Merged
dmarcos merged 1 commit into
aframevr:masterfrom
mrxz:fix-unit-tests-on-error
Jul 1, 2024
Merged

No longer bubble 'error' events from a-asset-items as these interfere with Karma#5548
dmarcos merged 1 commit into
aframevr:masterfrom
mrxz:fix-unit-tests-on-error

Conversation

mrxz commented Jun 27, 2024

Copy link
Copy Markdown
Contributor

Description:
I noticed that not all unit tests are being executed. Turns out that emitting error events causes Karma to stop executing further tests. Interestingly enough this does not seem to be tied to the error event handler in __init.test.js. This PR ensure that the error event emitted by <a-asset-item> doesn't bubble, effectively resolving the issue.

Ideally we should avoid using the error event name, but I figured that is a bigger breaking change than changing it to not bubble.

Before: ✔ 1771 tests completed / ℹ 12 tests skipped
After: ✔ 2475 tests completed / ℹ 16 tests skipped
Note: Above results are obtained by running npm run test, which counts test double between FF and Chrome

Changes proposed:

  • No longer bubble error events from a-asset-items

dmarcos commented Jul 1, 2024

Copy link
Copy Markdown
Member

Awesome catch! Thanks so much!

dmarcos merged commit ca7b02d into aframevr:master Jul 1, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL