Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: vitest-dev/eslint-plugin-vitest
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.3.17
Choose a base ref
...
head repository: vitest-dev/eslint-plugin-vitest
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.3.18
Choose a head ref
  • 6 commits
  • 76 files changed
  • 1 contributor

Commits on Dec 16, 2023

  1. Copy the full SHA
    6f332c5 View commit details
  2. Feat(new rules): Implement to have been called with (#325)

    * feat(added docs for the new rule): new rules docs done
    
    * chore(formating): apply linter
    veritem authored Dec 16, 2023
    Copy the full SHA
    37261f0 View commit details

Commits on Dec 17, 2023

  1. feat(new rule): setup prefer expect assertions (#326)

    * feat(new rule): setup prefer expect assertions
    
    * chore(vitest arning): remove visted module warning
    veritem authored Dec 17, 2023
    Copy the full SHA
    ec2952c View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    0249131 View commit details
  3. Feat/expect expect issues (#328)

    * chore(trying to fix expect): expect-expect
    
    * fix(expect-expect): fixed expect rule
    
    * chore(conflicts): fixed conflicts
    veritem authored Dec 17, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    bf5cb08 View commit details
  4. chore: release v0.3.18

    veritem committed Dec 17, 2023
    Copy the full SHA
    2920475 View commit details
Showing with 7,113 additions and 5,896 deletions.
  1. +1 −0 .eslintrc.json
  2. +55 −53 README.md
  3. +55 −7 docs/rules/expect-expect.md
  4. +26 −0 docs/rules/prefer-called-exactly-once-with.md
  5. +116 −0 docs/rules/prefer-expect-assertions.md
  6. +9 −1 fixtures/.eslintrc
  7. +2 −2 fixtures/package.json
  8. +395 −255 fixtures/pnpm-lock.yaml
  9. +10 −10 package.json
  10. +238 −246 pnpm-lock.yaml
  11. +0 −108 scripts/chain-permutations.mjs
  12. +107 −0 scripts/chain-permutations.ts
  13. +141 −135 src/index.ts
  14. +58 −58 src/rules/consistent-test-filename.ts
  15. +132 −132 src/rules/consistent-test-it.ts
  16. +65 −61 src/rules/expect-expect.ts
  17. +58 −58 src/rules/max-expect.ts
  18. +58 −58 src/rules/max-expects.ts
  19. +59 −59 src/rules/max-nested-describe.ts
  20. +54 −54 src/rules/no-alias-methods.ts
  21. +29 −29 src/rules/no-commented-out-tests.ts
  22. +67 −67 src/rules/no-conditional-expect.ts
  23. +35 −35 src/rules/no-conditional-in-test.ts
  24. +44 −44 src/rules/no-conditional-tests.ts
  25. +65 −65 src/rules/no-disabled-tests.ts
  26. +134 −134 src/rules/no-done-callback.ts
  27. +46 −46 src/rules/no-duplicate-hooks.ts
  28. +53 −53 src/rules/no-focused-tests.ts
  29. +37 −37 src/rules/no-hooks.ts
  30. +60 −60 src/rules/no-identical-title.ts
  31. +30 −30 src/rules/no-import-node-test.ts
  32. +34 −34 src/rules/no-interpolation-in-snapshots.ts
  33. +94 −94 src/rules/no-large-snapshots.ts
  34. +26 −26 src/rules/no-mocks-import.ts
  35. +50 −50 src/rules/no-restricted-matchers.ts
  36. +38 −38 src/rules/no-restricted-vi-methods.ts
  37. +105 −105 src/rules/no-standalone-expect.ts
  38. +42 −42 src/rules/no-test-prefixes.ts
  39. +44 −44 src/rules/no-test-return-statement.ts
  40. +50 −0 src/rules/prefer-called-exactly-once-with.ts
  41. +2 −2 src/rules/prefer-called-with.ts
  42. +106 −106 src/rules/prefer-comparison-matcher.ts
  43. +62 −62 src/rules/prefer-each.ts
  44. +92 −92 src/rules/prefer-equality-matcher.ts
  45. +239 −0 src/rules/prefer-expect-assertions.ts
  46. +40 −40 src/rules/prefer-expect-resolves.ts
  47. +52 −52 src/rules/prefer-hooks-in-order.ts
  48. +32 −32 src/rules/prefer-hooks-on-top.ts
  49. +143 −143 src/rules/prefer-lowercase-title.ts
  50. +83 −83 src/rules/prefer-mock-promise-shorthand.ts
  51. +93 −93 src/rules/prefer-snapshot-hint.ts
  52. +85 −85 src/rules/prefer-spy-on.ts
  53. +38 −38 src/rules/prefer-strict-equal.ts
  54. +37 −37 src/rules/prefer-to-be-falsy.ts
  55. +75 −75 src/rules/prefer-to-be-object.ts
  56. +37 −37 src/rules/prefer-to-be-truthy.ts
  57. +107 −107 src/rules/prefer-to-be.ts
  58. +68 −68 src/rules/prefer-to-contain.ts
  59. +49 −49 src/rules/prefer-to-have-length.ts
  60. +55 −55 src/rules/prefer-todo.ts
  61. +77 −77 src/rules/require-hook.ts
  62. +33 −33 src/rules/require-to-throw-message.ts
  63. +70 −70 src/rules/require-top-level-describe.ts
  64. +54 −54 src/rules/unbound-method.ts
  65. +86 −86 src/rules/valid-describe-callback.ts
  66. +261 −261 src/rules/valid-expect.ts
  67. +251 −251 src/rules/valid-title.ts
  68. +18 −18 src/utils/msc.ts
  69. +327 −327 src/utils/parseVitestFnCall.ts
  70. +21 −21 src/utils/types.ts
  71. +1,014 −1,017 src/utils/validVitestFnCallChains.ts
  72. +327 −84 tests/expect-expect.test.ts
  73. +24 −11 tests/no-identical-title.test.ts
  74. +35 −0 tests/prefer-called-exactly-once-with.test.ts
  75. +298 −0 tests/prefer-expect-assertions.test.ts
  76. 0 vitest.config.ts → vitest.config.mts
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
],
"no-case-declarations": 0,
"no-tabs": "off",
"no-mixed-spaces-and-tabs": "off",
"vitest/unbound-method": "off"
}
}
Loading