Skip to content

Commit

Permalink
chore(eslint): disallow fdescribe/fit (#5107)
Browse files Browse the repository at this point in the history
Fixes #5106
  • Loading branch information
nolanlawson authored Jan 8, 2025
1 parent 6bf7070 commit 27a2aaa
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,19 @@ export default tseslint.config(
'vitest/valid-expect-in-promise': 'error',
'vitest/no-conditional-tests': 'error',
'vitest/no-done-callback': 'error',
// Note that vitest's "no focused tests" rules do not cover `fit`/`fdescribe`
// https://github.com/salesforce/lwc/issues/5106
'no-restricted-globals': [
'error',
{
name: 'fdescribe',
message: 'Do not commit focused tests. Use `describe` instead.',
},
{
name: 'fit',
message: 'Do not commit focused tests. Use `it` instead.',
},
],
},
},
{
Expand Down

0 comments on commit 27a2aaa

Please sign in to comment.