Skip to content

Commit 821fa00

Browse files
committed
chore(eslint): disallow fdescribe/fit
Fixes #5106
1 parent 6bf7070 commit 821fa00

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

eslint.config.mjs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,19 @@ export default tseslint.config(
242242
'vitest/valid-expect-in-promise': 'error',
243243
'vitest/no-conditional-tests': 'error',
244244
'vitest/no-done-callback': 'error',
245+
// Note that vitest's "no focused tests" rules do not cover `fit`/`fdescribe`
246+
// https://github.com/salesforce/lwc/issues/5106
247+
'no-restricted-globals': [
248+
'error',
249+
{
250+
name: 'fdescribe',
251+
message: 'Do not commit focused tests. Use `describe` instead.',
252+
},
253+
{
254+
name: 'fit',
255+
message: 'Do not commit focused tests. Use `it` instead.',
256+
},
257+
],
245258
},
246259
},
247260
{

0 commit comments

Comments
 (0)