Pular para o conteúdo

noSkippedTests

Este conteúdo não está disponível em sua língua ainda.

Disallow disabled tests.

Disabled test are useful when developing and debugging, although they should not be committed in production.

describe.skip("test", () => {});
code-block.js:1:10 lint/suspicious/noSkippedTests  FIXABLE  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Don’t disable tests.

> 1 │ describe.skip(“test”, () => {});
^^^^
2 │

Disabling tests is useful when debugging or creating placeholder while working.

If this is intentional, and you want to commit a disabled test, add a suppression comment.

Unsafe fix: Enable the test.

1 │ describe.skip(“test”,·()·=>·{});
-----
test.skip("test", () => {});
code-block.js:1:6 lint/suspicious/noSkippedTests  FIXABLE  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Don’t disable tests.

> 1 │ test.skip(“test”, () => {});
^^^^
2 │

Disabling tests is useful when debugging or creating placeholder while working.

If this is intentional, and you want to commit a disabled test, add a suppression comment.

Unsafe fix: Enable the test.

1 │ test.skip(“test”,·()·=>·{});
-----
test.only("test", () => {});
test("test", () => {});
biome.json
{
"linter": {
"rules": {
"suspicious": {
"noSkippedTests": "error"
}
}
}
}