Skip to content

tests: tweak Jasmine usage#32046

Merged
XhmikosR merged 1 commit into
mainfrom
main-xmr-eslint-jasmine
Nov 2, 2020
Merged

tests: tweak Jasmine usage#32046
XhmikosR merged 1 commit into
mainfrom
main-xmr-eslint-jasmine

Conversation

@XhmikosR

@XhmikosR XhmikosR commented Nov 2, 2020

Copy link
Copy Markdown
Member

Notes:

  1. I think I'd prefer if we could make the rules throw an error instead of a warning, but I can't find an easy way to do it so we'd need to specify all the rules we want and set them as errors
  2. jasmine/expect-single-argument has false warnings with expect().nothing()
  3. jasmine/prefer-toHaveBeenCalledWith would be nice to have AFAICT, but it would need more code changes so I disabled it for now

After #32043 this branch should have zero warnings.

* jasmine/expect-matcher
* jasmine/prefer-jasmine-matcher

Found with `eslint-plugin-jasmine`
@XhmikosR XhmikosR marked this pull request as ready for review November 2, 2020 14:10
@XhmikosR XhmikosR requested a review from a team as a code owner November 2, 2020 14:10
@XhmikosR XhmikosR force-pushed the main-xmr-eslint-jasmine branch from 095a8e7 to 509f48b Compare November 2, 2020 14:11
@XhmikosR XhmikosR changed the title tests: add eslint-plugin-jasmine tests: tweak Jasmine usage Nov 2, 2020
@XhmikosR XhmikosR merged commit c9f8fa4 into main Nov 2, 2020
@XhmikosR XhmikosR deleted the main-xmr-eslint-jasmine branch November 2, 2020 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants