src/content/docs/linter/rules/no-skipped-tests.mdx
import { Tabs, TabItem } from '@astrojs/starlight/components';
<Tabs> <TabItem label="JavaScript (and super languages)" icon="seti:javascript"> ## Summary - Rule available since: `v1.6.0` - Diagnostic Category: [`lint/suspicious/noSkippedTests`](/reference/diagnostics#diagnostic-category) - This rule isn't recommended, so you need to enable it. - This rule has an [**unsafe**](/linter/#unsafe-fixes) fix. - The default severity of this rule is [**warning**](/reference/diagnostics#warning). - This rule belongs to the following domains: - [`test`](/linter/domains#test) - Sources: - Inspired from [`jest/no-disabled-tests`](https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/no-disabled-tests.md) - Inspired from [`vitest/no-disabled-tests`](https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-disabled-tests.md) - Inspired from [`playwright/no-skipped-test`](https://github.com/playwright-community/eslint-plugin-playwright/blob/main/docs/rules/no-skipped-test.md){
"linter": {
"rules": {
"suspicious": {
"noSkippedTests": "error"
}
}
}
}
Disallow disabled tests.
Disabled tests are useful when developing and debugging, although they should not be committed in production.
The rule detects the following patterns:
describe.skip, it.skip, test.skipdescribe.fixme, it.fixme, test.fixmetest.describe.skip, test.describe.fixmetest.describe.parallel.skip, test.describe.serial.skiptest.describe.parallel.fixme, test.describe.serial.fixmetest.step.skip, test.step.fixmexdescribe, xit, xtesttest["skip"], test["fixme"]test.skip() / test.fixme() calls (0 arguments)describe.skip("test", () => {});
test.skip("test", () => {});
test.fixme("needs fixing", async () => {});
test.only("test", () => {});
test("test", () => {});