-
Notifications
You must be signed in to change notification settings - Fork 207
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
istanbul ignore else #218
Comments
I'm not sure I understand what's going on. Is this a linting issue or a prettier issue? Either way I'm not sure what we could do in this project to fix that. |
It's both If we can't fix this in this repo by adjusting some config, then maybe we can relay this problem to the dependency that could fix this. |
Yeah, I have no idea what caused the change in behavior and I'm afraid I don't have the bandwidth to investigate it :-/ |
We had the same problem in dom-testing-library. I just converted the |
* feat: keep track of document state in UI * programmatically changing value resets UIValue * prevent stacking of value interceptors * programmatically changing value resets initial value * fix istanbul ignore see kentcdodds/kcd-scripts#218 * ignore uncovered `activeElement` being `null` * intercept calls to `setSelectionRange` * fix istanbul ignore see kentcdodds/kcd-scripts#218 * ignore omitting unnecessary event * remove obsolete util * move modules * fix istanbul ignore see kentcdodds/kcd-scripts#218 * ignore omitting unnecessary event
* feat: add `pointer` API * refactor * add `pointerMove` * fix fake event bubbling * sequences of pointer actions * default to mouse pointer * add touch tests * add enter/leave events on touch down/up * add tests and handle errors * add tests * fix istanbul ignore see kentcdodds/kcd-scripts#218 * add test
* feat: keep track of document state in UI * programmatically changing value resets UIValue * prevent stacking of value interceptors * programmatically changing value resets initial value * fix istanbul ignore see kentcdodds/kcd-scripts#218 * ignore uncovered `activeElement` being `null` * intercept calls to `setSelectionRange` * fix istanbul ignore see kentcdodds/kcd-scripts#218 * ignore omitting unnecessary event * remove obsolete util * move modules * fix istanbul ignore see kentcdodds/kcd-scripts#218 * ignore omitting unnecessary event
* feat: add `pointer` API * refactor * add `pointerMove` * fix fake event bubbling * sequences of pointer actions * default to mouse pointer * add touch tests * add enter/leave events on touch down/up * add tests and handle errors * add tests * fix istanbul ignore see kentcdodds/kcd-scripts#218 * add test
* feat: keep track of document state in UI * programmatically changing value resets UIValue * prevent stacking of value interceptors * programmatically changing value resets initial value * fix istanbul ignore see kentcdodds/kcd-scripts#218 * ignore uncovered `activeElement` being `null` * intercept calls to `setSelectionRange` * fix istanbul ignore see kentcdodds/kcd-scripts#218 * ignore omitting unnecessary event * remove obsolete util * move modules * fix istanbul ignore see kentcdodds/kcd-scripts#218 * ignore omitting unnecessary event
* feat: add `pointer` API * refactor * add `pointerMove` * fix fake event bubbling * sequences of pointer actions * default to mouse pointer * add touch tests * add enter/leave events on touch down/up * add tests and handle errors * add tests * fix istanbul ignore see kentcdodds/kcd-scripts#218 * add test
kcd-scripts
version: 11.2.0node
version: anynpm
(oryarn
) version: anyRelevant code or config
https://github.com/testing-library/user-event/pull/706/files#diff-79de2fcdb58def5d2000c20beddc4bb5a30488589e20c207181967dd0e75aa72R28
What you did:
Run CI with
"kcd-scripts": "^11.1.0"
.What happened:
After release of
v11.2.0
CI fails due to uncovered lines.Turns out istanbul expects the
/* istanbul ignore else */
right in betweenelse if
now.The pre-commit hook reverts the change and therefore commits fixing this have to be committed with
--no-verify
.Reproduction repository:
testing-library/user-event#706
Problem description:
kcd-scripts lint
does not flag/* istanbul ignore else */ else if
.kcd-scripts/husky
adds a pre-commit hook that changes the (now) correctelse /* istanbul ignore else */ if
back to/* istanbul ignore else */ else if
.Suggested solution:
Report a lint error for
/* istanbul ignore else */ else if
.Lint-fix to
else /* istanbul ignore else */ if
.The text was updated successfully, but these errors were encountered: