eslint-plugin-vitest icon indicating copy to clipboard operation
eslint-plugin-vitest copied to clipboard

Feature request: `consistent-test-file-path`

Open h0adp0re opened this issue 1 year ago • 2 comments

Some projects nest test files next to relevant source files in several __tests__ directories. It would be handy to enforce this practice. I found out the hard way that consistent-test-filename does what it says and only uses basename.

The API could be something like this:

'vitest/consistent-test-file-path': [
  'error',
  {
    pattern: '**/__tests__/*',
  },
],

h0adp0re avatar Feb 07 '24 14:02 h0adp0re