@things-factory/headless-twin 10.1.29 → 10.1.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -153,3 +153,26 @@ test('빈 단계 값은 받지 않는다 — 모든 행을 뜻하는지 없는
153
153
  )
154
154
  assert.equal(shape, null)
155
155
  })
156
+
157
+
158
+ /*
159
+ * ── 목록과 건수가 같은 축을 본다 (2026-09-19) ───────────────────────────────
160
+ *
161
+ * 빠른 갈래는 건수를 **다른 빌더**로 센다. 그 빌더가 검색 축을 빈 배열로 선언하고 있었다 — 목록은
162
+ * 걸러지고 건수는 안 걸러지는 모양이다(UX 레인이 검색 길을 세다 짚었다).
163
+ *
164
+ * **지금 그 일은 일어날 수 없다**: 검색어가 있으면 빠른 갈래를 아예 안 탄다(위 「자유 검색어」가 그
165
+ * 축을 붙든다). 그래서 이것은 산 결함이 아니라 **잠긴 함정**이고, 두 자리가 같은 상수를 보게 해서
166
+ * 닫는다 — 저 규칙이 언젠가 느슨해지면 그때 조용히 갈릴 자리다.
167
+ */
168
+ test('★ 건수 probe 와 목록이 같은 검색 축을 쓴다 — 한쪽만 걸러지면 화면이 「한 건 / 전체 수」를 말한다', () => {
169
+ const uses = [...journal.matchAll(/searchables:\s*([^,\n]+)/g)].map(m => m[1].trim())
170
+
171
+ assert.ok(uses.length >= 2, '검색 축을 선언하는 자리가 둘이어야 한다(목록 · 건수 probe)')
172
+ assert.deepEqual(
173
+ [...new Set(uses)],
174
+ ['[...JOURNAL_SEARCHABLES]'],
175
+ '두 자리가 같은 상수를 봐야 한다 — 배열을 따로 적으면 한쪽만 늘어난다'
176
+ )
177
+ assert.doesNotMatch(journal, /searchables:\s*\[\]/, '빈 목록은 「검색어를 조용히 버린다」는 뜻이다')
178
+ })