Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

no-test-prefixes.md 884B

1234567891011121314151617181920212223242526272829303132
  1. # Use `.only` and `.skip` over `f` and `x` (`no-test-prefixes`)
  2. Jest allows you to choose how you want to define focused and skipped tests, with
  3. multiple permutations for each:
  4. - **only & skip:** `it.only`, `test.only`, `describe.only`, `it.skip`,
  5. `test.skip`, `describe.skip`.
  6. - **'f' & 'x':** `fit`, `fdescribe`, `xit`, `xtest`, `xdescribe`.
  7. This rule enforces usages from the **only & skip** list.
  8. ## Rule details
  9. This rule triggers a warning if you use one of the keywords from the **'f' &
  10. 'x'** list to focus/skip a test.
  11. ```js
  12. /*eslint jest/no-test-prefixes: "error"*/
  13. it.only('foo'); // valid
  14. test.only('foo'); // valid
  15. describe.only('foo'); // valid
  16. it.skip('foo'); // valid
  17. test.skip('foo'); // valid
  18. describe.skip('foo'); // valid
  19. fit('foo'); // invalid
  20. fdescribe('foo'); // invalid
  21. xit('foo'); // invalid
  22. xtest('foo'); // invalid
  23. xdescribe('foo'); // invalid
  24. ```