Skip to content

Commit 3ce9c05

Browse files
committed
test: fix import ordering in promotion.test (biome organizer)
The mock-completeness comment + `import * as realEmbedding` were placed before ./constants; biome's import organizer (bun run lint = biome check .) requires local imports sorted, so CI's Check(plugin) lint went red. Reorder so ./embedding sits after ./constants. Behavior unchanged.
1 parent 6a939e5 commit 3ce9c05

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/plugin/src/features/magic-context/memory/promotion.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import { afterEach, beforeEach, describe, expect, it, mock, spyOn } from "bun:test";
44
import { Database } from "../../../shared/sqlite";
55
import { closeQuietly } from "../../../shared/sqlite-helpers";
6+
import { CATEGORY_DEFAULT_TTL } from "./constants";
67
// The real module is imported (and evaluated) here BEFORE the mock registers,
78
// so it captures every real export. Bun's mock.module is process-global and
89
// persists across files in one test run, so a PARTIAL mock leaks into sibling
@@ -11,7 +12,6 @@ import { closeQuietly } from "../../../shared/sqlite-helpers";
1112
// found" under a whole-dir run). Spreading the real module keeps the mock
1213
// complete — only the three functions this file needs stubbed are overridden.
1314
import * as realEmbedding from "./embedding";
14-
import { CATEGORY_DEFAULT_TTL } from "./constants";
1515
import { computeNormalizedHash } from "./normalize-hash";
1616

1717
const mockEmbedText = mock(async () => null);

0 commit comments

Comments
 (0)