-
-
Notifications
You must be signed in to change notification settings - Fork 259
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
Implement test helper logging #745
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm definitely in favor, left a few minor inline comments / suggestions.
* Logs a debug message to the console if the `testHelperLogging` query | ||
* parameter is set. | ||
* | ||
* @private |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW, I wonder if this should actually be private. Seems like it might be nice for folks authoring custom helpers too...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say let's try it out and see if it works properly before we commit to making it a public API
restarted ci |
Resolves #740
The implementation is roughly similar to miragejs/ember-cli-mirage#1818. I've imported the
elementToString()
implementation that qunit-dom is using to describe target elements if they are not passed in as selector strings.