-
Notifications
You must be signed in to change notification settings - Fork 201
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
Get wct-mocha compiling clean. #755
Conversation
@rictic can you merge master into this? it should hopefully allow integration tests to pass. |
Also @rictic, this looks like a lot of work. Great job! |
Huh, this seems to be up to date with master. Maybe one of the changes I made wasn't as safe as I thought? |
Oh I assumed it was just failing because of Firefox 63, but you're right this branch does have the travis.yml pinning version to 62... |
I'll bisect the changes, will ping this thread again once it's ready to review :) |
This change causes the tests to fail!
a86c8f0
to
9e0cb58
Compare
Error bisected and fixed, ready to review. Please take a look! |
Taking a look! |
* @return A reporter-like "class" for each child suite | ||
* that should be passed to `mocha.run`. | ||
*/ | ||
childReporter(location: Location|string): ReporterFactory { | ||
const name = this.suiteTitle(location); |
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.
So this was straight up not used? Huh. Good find.
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 just turned on warning for unused vars and props.
That's also why I made some properties not private, because they weren't used anywhere, but I wasn't confident enough to delete them, so they're public for now.
if (target[key] !== null && typeof target[key] === 'object' && | ||
!Array.isArray(target[key])) { | ||
deepMerge(target[key], source[key]); | ||
export function deepMerge<V extends {}>(target: V, source: V) { |
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 am learning some TypeScript from this PR.
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.
Yeah, I'd prefer to rewrite these deep merge functions (we have two!) into something less magical.. but that's for another time
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.
LGTM
Thanks for the quick review! |
Wanted to get this compiling clean as part of internalizing this