Skip to content

Commit 3a99813

Browse files
committed
fix(lint): sort imports in detection test and update test counts to 145
1 parent 19b3094 commit 3a99813

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ OpenCode plugin that adds ordered model fallback chains with a health state mach
99
## Commands
1010

1111
```bash
12-
bun test # Run all unit tests (137 tests across 11 files)
12+
bun test # Run all unit tests (145 tests across 11 files)
1313
bunx tsc --noEmit # Type check
1414
bun run build # Build to dist/
1515
```

Implementation.plan.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ Addresses two problems: wasted 429 round-trips per message after a successful fa
315315

316316
## Verification Plan
317317

318-
1. **Unit tests** (per module): config validation, pattern matching, classification, health transitions, chain resolution, message conversion, agent loader, preemptive redirect, plugin events, fallback-status tool, tick recovery transitions, path traversal security, YAML schema enforcement — **137/137 passing**
318+
1. **Unit tests** (per module): config validation, pattern matching, classification, health transitions, chain resolution, message conversion, agent loader, preemptive redirect, plugin events, fallback-status tool, tick recovery transitions, path traversal security, YAML schema enforcement — **145/145 passing**
319319
2. **Integration tests** (mock client): full fallback flow, cascading, max depth, concurrent events, session deletion — **complete**
320320
3. **Manual E2E test**: Install as local plugin, configure fallback chains, trigger rate limit, verify:
321321
- Detection logged correctly

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ To see the full event stream (including `event.received` and `retry.nomatch`), s
227227
```bash
228228
bun install
229229
bun run lint # lint checks
230-
bun test # 137 tests across 11 files
230+
bun test # 145 tests across 11 files
231231
bunx tsc --noEmit # type check
232232
bun run build # build to dist/
233233
```

test/detection.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { describe, expect, it } from "bun:test";
2+
import { DEFAULT_PATTERNS } from "../src/config/defaults.js";
23
import { classifyError } from "../src/detection/classifier.js";
34
import { matchesAnyPattern } from "../src/detection/patterns.js";
4-
import { DEFAULT_PATTERNS } from "../src/config/defaults.js";
55

66
describe("classifyError", () => {
77
it("classifies 429 status code as rate_limit", () => {

0 commit comments

Comments
 (0)