From b9524cfdd52c71966fe363f977e67d59c2d7fd92 Mon Sep 17 00:00:00 2001 From: DongHyeonka Date: Wed, 4 Nov 2026 21:50:30 +0900 Subject: [PATCH] =?UTF-8?q?test(storage):=20scope=20participant=20?= =?UTF-8?q?=EC=A1=B0=EB=A6=BD=20=ED=85=8C=EC=8A=A4=ED=8A=B8=EA=B0=80=20?= =?UTF-8?q?=EC=A0=9C=ED=92=88=20=EC=84=A4=EC=A0=95=20=EA=B8=B0=EB=B3=B8?= =?UTF-8?q?=EA=B0=92=EC=9D=84=20=EA=B0=99=EC=9D=B4=20=EB=B0=9B=EB=8A=94?= =?UTF-8?q?=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 문제 fix/r1103-storage가 더한 browser-file-session-capability· runtime-adapters-product-scope-participants 테스트는 RuntimeConfig를 글자 그대로 적는다. fix/r1103-app(09-02)의 제품 확장 타입 검사 테스트가 이 두 파일에서 TS2322로 실패한다(9b9d62a와 같은 원인). 고른 방법 - 두 테스트도 testRuntimeConfig로 설정을 만든다. 위험·한계 - 동작 변경은 없다. 검증 - tests/unit/product-extension-typecheck.test.ts, 두 테스트, test:recipes, lint 통과. Refs: docs/reviews/2026-11-03-maturity-review/02-adapters-browser-files-cache.md 02-01 --- tests/recipes/browser-file-session-capability.test.ts | 5 +++-- .../unit/runtime-adapters-product-scope-participants.test.ts | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/recipes/browser-file-session-capability.test.ts b/tests/recipes/browser-file-session-capability.test.ts index 7afb7aab..1be69edd 100644 --- a/tests/recipes/browser-file-session-capability.test.ts +++ b/tests/recipes/browser-file-session-capability.test.ts @@ -10,6 +10,7 @@ import { } from "../../src/adapters/browser-files/index.ts"; import { createRuntimeAdapters } from "../../src/bootstrap/runtime-adapters.ts"; import { createSessionBrowserFileCapability } from "../../recipes/frontend-capabilities/browser-file-session-capability.ts"; +import { testRuntimeConfig } from "../helpers/runtime-config.ts"; /** * 2026-11-03 02-01. A product wires the browser file runtime to the session by @@ -157,7 +158,7 @@ afterEach(() => { async function compose() { current = await createRuntimeAdapters({ runtime: { - config: { + config: testRuntimeConfig({ APP_ENV: "local", API_BASE_URL: "http://localhost:8080", TELEMETRY_ENABLED: false, @@ -173,7 +174,7 @@ async function compose() { OFFLINE_COMMANDS: "DEFAULT", }, FEATURE_OVERRIDES: {}, - }, + }), configSchema: "V2", build: { buildId: "build-a", diff --git a/tests/unit/runtime-adapters-product-scope-participants.test.ts b/tests/unit/runtime-adapters-product-scope-participants.test.ts index 698a7723..3df098c4 100644 --- a/tests/unit/runtime-adapters-product-scope-participants.test.ts +++ b/tests/unit/runtime-adapters-product-scope-participants.test.ts @@ -2,6 +2,7 @@ import { afterEach, describe, expect, it, vi } from "vitest"; import type { ProductScopeParticipant } from "../../src/bootstrap/product-composition-contract.ts"; import { createRuntimeAdapters } from "../../src/bootstrap/runtime-adapters.ts"; +import { testRuntimeConfig } from "../helpers/runtime-config.ts"; /** * 2026-11-03 02-01. A product hands the template what must close with a @@ -56,7 +57,7 @@ afterEach(() => { async function compose() { current = await createRuntimeAdapters({ runtime: { - config: { + config: testRuntimeConfig({ APP_ENV: "local", API_BASE_URL: "http://localhost:8080", TELEMETRY_ENABLED: false, @@ -72,7 +73,7 @@ async function compose() { OFFLINE_COMMANDS: "DEFAULT", }, FEATURE_OVERRIDES: {}, - }, + }), configSchema: "V2", build: { buildId: "build-a",