reference-based .only fix for #299#303
Conversation
lib/results.js
Outdated
| this.pass = 0; | ||
| this._stream = through(); | ||
| this.tests = []; | ||
| this._only = 0; |
There was a problem hiding this comment.
this can probably be initialized to null, or function () {}, rather than zero?
There was a problem hiding this comment.
Yes, my preference is to initialize to null. I was trying to be consistent with the rest of the code, as you had asked. ;-)
There was a problem hiding this comment.
The other things that init to 0 tho end up assigned to numbers, right? ie, the convention is to initialize such that the type of the property doesn't change?
There was a problem hiding this comment.
Okay, just checked through them. Maybe I was confusing those with another project. I'll fix. To minimize the chance of me screwing up, it would help for you to point me to the right way to update a PR. I screwed up a PR on a project once so that thereafter every single PR indicated failed merges despite merges really being clean. I'll spend an hour researching before making an attempt. I've gotten git-shy.
There was a problem hiding this comment.
np - basically you just rebase your local branch as you like - without deleting the branch or pushing any changes to the remote - and then, assuming "origin" is the remote that points to your fork, git push origin ref-based-only -u -f - without the "-f" it will refuse to push it.
There was a problem hiding this comment.
Sorry, what did you want to accomplish with the rebase? I'm getting Current branch ref-based-only is up to date. My master branch has edits, so I'm working off of a source branch that's a copy of your master. That's the message I get on git rebase source.
There was a problem hiding this comment.
You'd need to do a fetch off the source remote, and then git rebase source/master
|
It appears to have updated properly. Now to add notes to my already-huge set so notes on git. |
|
I can't Note that I'm not working off of a child branch of the branch of mine that you merged. |
|
I attempted another approach that also didn't work:
It's telling me that the upstream branch is using the old name-based |
|
Okay I figured it out. I had to walk the rebase forward through time, even if it meant temporarily adding back in code that has since been deleted. |
- [Fix] `throws`: only reassign “message” when it is not already non-enumerable (#320) - [Fix] show path for error messages on windows (#316) - [Fix] `.only` should not run multiple tests with the same name (#299, #303) - [Deps] update `glob`, `inherits` - [Dev Deps] update `concat-stream`, `tap`, `tap-parser`, `falafel` - [Tests] [Dev Deps] Update to latest version of devDependencies tap (v7) and tap-parser (v2) (#318) - [Tests] ensure the max_listeners test has passing output - [Docs] improvements (#298, #317)
.only now identifies tests by reference instead of by test name, fixing #299