---
url: https://scruple.dev/rules/tests/no-vacuous-tests.md
description: Disallow tests with no effective behavior verification.
---

# tests/no-vacuous-tests

Disallow tests with no effective behavior verification.

## What it checks

Tests should causally verify claimed behavior with assertions, snapshots, expected failures, or mock interactions rather than merely executing code or asserting tautologies.

## Rule metadata

* Package: `@scruple/tests`
* Category: Test effectiveness
* Tags: assertions, coverage, behavior
* Default threshold: `0.9`
* Minimum confidence: `0.7`

## Examples

### Reported

```ts
test("adds", () => { add(2, 3); });
```

### Accepted

```ts
test("adds", () => { expect(add(2, 3)).toBe(5); });
```
