Repository navigation
feat(vitest): add toHaveLengthMatchers rule - #3650
Conversation
🦋 Changeset detectedLatest commit: 5c5e16c The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for flint-fyi ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
@flint.fyi/astro
@flint.fyi/astro-language
@flint.fyi/browser
@flint.fyi/changesets
@flint.fyi/cli
@flint.fyi/core
@flint.fyi/css
@flint.fyi/css-language
flint
@flint.fyi/json
@flint.fyi/json-language
@flint.fyi/jsx
@flint.fyi/markdown-language
@flint.fyi/md
@flint.fyi/next
@flint.fyi/node
@flint.fyi/nuxt
@flint.fyi/package-json
@flint.fyi/performance
@flint.fyi/plugin-flint
@flint.fyi/react
@flint.fyi/rule-data
@flint.fyi/rule-tester
@flint.fyi/solid
@flint.fyi/spelling
@flint.fyi/svelte
@flint.fyi/svelte-language
@flint.fyi/text-language
@flint.fyi/ts
@flint.fyi/ts-patch
@flint.fyi/typescript-language
@flint.fyi/utils
@flint.fyi/vitest
@flint.fyi/volar-language
@flint.fyi/vue
@flint.fyi/vue-language
@flint.fyi/yaml
@flint.fyi/yaml-language
commit: |
lishaduck
left a comment
There was a problem hiding this comment.
Great first contribution, thanks for the PR!
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
michaelfaith
left a comment
There was a problem hiding this comment.
Awesome first contribution! Nice work. Just a few nits from me. Let us know once you have those addressed, and one of us will merge.
|
@michaelfaith @lishaduck nits addressed Thanks! |
|
@all-contributors please add amitreny for code.
|
|
@github-actions[bot] I've put up a pull request to add @amitreny! 🎉 |
Adds @amitreny as a contributor for code. This was requested by github-actions[bot] [in this comment](#3650 (comment)) --------- Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
PR Checklist
toHaveLengthMatchersrule #2698status: accepting prsOverview
toHaveLengthMatchers rule for the Vitest plugin have been ported from vitest/prefer-to-have-length
matches: toBe, toEqual and toStrictEqual on an expect() argument ending in .length or ["length"], including through .not
skips: optional chains such as expect(files?.length), because toHaveLength() throws on undefined.
🫡