Skip to content

Commit cc6d65d

Browse files
serhalpmrstork
andauthored
chore: remove .only from test (#6108)
* chore: remove `.only` from test Looks like this has been here for 16 months 🤦🏼: #5386. * test: update snapshot * ci: add lint rules to prevent skip and only in test suite * test: unskip test * ci: lint warnings fail build, so commenting out the rules for now * test: undo snapshot update * test: replace snapshot test with assertions * test: remove core plugin override test * test: ensure the same test coverage as the snapshot had before * test: pr feedback * ci: regenerate lockfile --------- Co-authored-by: Mateusz Bocian <[email protected]>
1 parent 99ec56a commit cc6d65d

File tree

10 files changed

+445
-136
lines changed

10 files changed

+445
-136
lines changed

.eslintrc.cjs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const config = {
1313
ecmaVersion: 'latest',
1414
sourceType: 'module',
1515
},
16-
plugins: ['import', '@typescript-eslint'],
16+
plugins: ['import', '@typescript-eslint', 'ava', 'vitest'],
1717

1818
ignorePatterns: [
1919
// TODO: remove when they are migrated to typescript
@@ -60,6 +60,14 @@ const config = {
6060
},
6161
},
6262
],
63+
64+
// -----------------------------------------------------------
65+
// Test rules
66+
'ava/no-only-test': 'error',
67+
// 'ava/no-skip-test': 'error', // Uncomment once we remove all skipped tests
68+
// 'vitest/no-commented-out-tests': 'error', // Uncomment once we remove all commented out tests
69+
'vitest/no-disabled-tests': 'error',
70+
'vitest/no-focused-tests': 'error',
6371
},
6472
overrides: [
6573
{

0 commit comments

Comments
 (0)