test(storage): scope participant 조립 테스트가 제품 설정 기본값을 같이 받는다
문제 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
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user