Skip to content

fix(content-studio): useResearchInCopy type mismatch in plan route test (from #498) #610

@thxforall

Description

@thxforall

Summary

bun run buildpackages/web/app/api/v1/content/assets/plan/__tests__/route.test.ts:559useResearchInCopy: false 필드 타입 mismatch로 실패. dev 자체가 빌드 안 되는 상태.

Root cause

PR #498 (feat(content-studio): AI-powered content generation pipeline) 머지 시 test fixture가 production type signature와 일치하지 않게 추가됨. test 파일이라도 Next.js 16 build pipeline은 전체 type-check를 수행하여 실패.

Reproduction

git checkout dev
git pull origin dev
cd packages/web
bun install
bun run build
# → Next.js build worker exited with code: 1
# → Error at app/api/v1/content/assets/plan/__tests__/route.test.ts:559
#   useResearchInCopy: false  ^^^^^^^^^^^^^^^^^^

Impact

Suggested fix

두 가지 중 하나:

  1. useResearchInCopy 필드를 PlanInput(또는 동급) 타입 정의에 정식 추가
  2. test fixture에서 해당 필드 제거 (불필요한 경우)

Owner

#498 작성자 (content-studio 영역 owner)

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions