You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While discussing GH issue: #22160 about vitest/require-hook being a false positive for .vue/.jsx files, I came to the idea to:
Either update the "How to use" section in the docs, to include an overrides field to only run test plugins on *.{test,spec}.{ts,tsx,js,jsx} files, similarly how it's done for the ESLint equivalents. Here's eslint-plugin-vitest as an example: https://github.com/vitest-dev/eslint-plugin-vitest/tree/main#usage
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone!
While discussing GH issue: #22160 about
vitest/require-hookbeing a false positive for.vue/.jsxfiles, I came to the idea to:Either update the "How to use" section in the docs, to include an
overridesfield to only run test plugins on*.{test,spec}.{ts,tsx,js,jsx}files, similarly how it's done for the ESLint equivalents. Here'seslint-plugin-vitestas an example: https://github.com/vitest-dev/eslint-plugin-vitest/tree/main#usage{ "overrides": [ { "files": ["*.{test,spec}.{ts,tsx,js,jsx}"], "plugins": ["vitest"], "rules": { "vitest/consistent-test-it": "error" } } ] }Or to run these rules by default only on
*.{test,spec}.{ts,tsx,js,jsx}files through theoxcCLI?What do you say? Do any of these suggestions make any sense?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions