diff --git a/docs/manual/reference/create-feature.md b/docs/manual/reference/create-feature.md index ec1cc915..da64e4d8 100644 --- a/docs/manual/reference/create-feature.md +++ b/docs/manual/reference/create-feature.md @@ -149,10 +149,10 @@ corepack pnpm generate:feature-index - 백엔드 경로 규칙, `--with-create`·`--keyed`의 descriptor 값, 모든 operation의 Envelope 선언. - 생성한 context 선언을 임시 폴더에 써서 생성기의 선언 읽기(`createFileSystemDeclarationSource`)로 읽고, 그 모듈을 import해 라우트 루트가 기능 라우트를 모두 받는지 앱 모듈 조립으로 확인한다. - `test:feature-scaffold` (FE-GATE-020) - - 저장소 복사본에 기능 하나를 만들고 커밋한 뒤 게이트를 돈다. + - 저장소 복사본에 기능 둘(기본 하나, `--with-create --keyed` 하나)을 만들고 커밋한 뒤 게이트를 돈다. - 타입, lint, 아키텍처, 레지스트리, i18n, 디자인 시스템, 진단, 문서, unit, component, integration, 기능 테스트, 커버리지, CI 계약, 빌드. - `test:sample-removal` (FE-GATE-020) - - 참조 기능을 지운 복사본에서 이 명령으로 기능을 만들고 같은 게이트를 다시 돈다. 명령이 참조 기능에 기대지 않는다는 증거다. + - 참조 기능을 지운 복사본에서 이 명령(`--with-create`)으로 기능을 만들고 같은 게이트를 다시 돈다. 명령과 쓰기 slice가 참조 기능에 기대지 않는다는 증거다. ## 알려진 한계 diff --git a/scripts/test-feature-scaffold.ts b/scripts/test-feature-scaffold.ts index 61654558..495c5f1a 100644 --- a/scripts/test-feature-scaffold.ts +++ b/scripts/test-feature-scaffold.ts @@ -14,11 +14,14 @@ import { /** * U7. A feature from `create:feature` passes the merge gates without an edit * and breaks no other test. A copy of the repository, sample feature - * included, gets one generated feature and then runs the gates. + * included, gets a default feature and a `--with-create --keyed` one, then + * runs the gates. * test:sample-removal repeats the generation after deleting the sample * (decision 4), which proves the command needs nothing from it. */ const FEATURE_ID = "scaffold-feature"; +/** 1103/09-06. The `--with-create --keyed` slice, in its own context. */ +const WRITE_FEATURE_ID = "scaffold-write-feature"; const REPORT = "artifacts/tests/feature-scaffold.xml"; const pnpmCli = requireRemovalFixtureEnvironment("npm_execpath"); @@ -37,8 +40,13 @@ try { "docs", ]); const created = check("create-feature", "create:feature", [FEATURE_ID]); - const checks: RemovalCheck[] = [created]; - if (created.passed) { + const createdWrite = check("create-feature-write", "create:feature", [ + WRITE_FEATURE_ID, + "--with-create", + "--keyed", + ]); + const checks: RemovalCheck[] = [created, createdWrite]; + if (created.passed && createdWrite.passed) { // Commits the copy with the feature, as a project would: git-based // checks (git grep, git ls-files) then see the feature's files. sealRemovalFixtureRepository(fixtureRoot); diff --git a/scripts/test-sample-removal.ts b/scripts/test-sample-removal.ts index 81bec4c0..c28604fb 100644 --- a/scripts/test-sample-removal.ts +++ b/scripts/test-sample-removal.ts @@ -450,8 +450,11 @@ try { // from create:feature and runs the same gates again: the command and the // feature it writes need nothing from the sample. if (isSample) { + // 1103/09-06. With the write slice (NEVER), which needs nothing from + // the sample either. const created = check("scaffold-create-feature", "create:feature", [ "scaffold-feature", + "--with-create", ]); checks.push(created); if (created.passed) {