chore(scripts): 에이전트용 검증 커맨드 정비 - #34
Merged
Merged
Conversation
`pnpm test`가 watch 모드라 CI 밖에서 실행하면 종료되지 않았다. CI만 `--run`을 붙여 피해가고 있었고, 로컬·에이전트는 타임아웃까지 매달렸다. - test·test:coverage를 `vitest run`으로 바꾸고 watch는 test:watch로 분리 - 루트 test를 @zpl-kit/tests로 위임. 루트 vitest는 dist를, tests 패키지는 development 조건으로 src를 해석해 같은 테스트가 두 경로로 갈라져 있었다 - build:libs·verify 추가. verify는 build:libs → lint → format:check → type-check → test 순으로, exports가 dist를 가리키는 탓에 생기는 빌드 선행 조건을 스크립트 안에 넣는다 - 워크플로 3개도 같은 스크립트를 쓰도록 정리 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
요약 / 의도
pnpm test가 watch 모드라 CI 밖에서 실행하면 종료되지 않았다. CI만--run을붙여 피해가고 있었고, 로컬·에이전트는 타임아웃까지 매달렸다. 검증 명령을
pnpm verify하나로 모아 CI와 로컬이 같은 경로를 밟게 한다.범위
tests(스크립트만)이번에 한 것
test·test:coverage를vitest run으로, watch는test:watch로 분리test를@zpl-kit/tests로 위임build:libs·verify추가 —build:libs → lint → format:check → type-check → testtest --run제거)의도적으로 안 한 것 / 후속
vitest.config.ts가 이제 어떤 스크립트에서도 쓰이지 않는다 —죽은 설정 정리 PR에서 husky 잔재·
docs/index.md와 함께 제거공개 패키지 영향
검증 (체크가 아니라 값으로)
pnpm verify: 통과 (exit 0, 5단계 전부 실행, 42 tests)pnpm test:watch: 20초 후에도 실행 중(exit 124) → watch 정상pnpm --filter @zpl-kit/tests test:coverage: exit 0리뷰 포인트 / 위험 지점
test를 tests 패키지로 위임한 판단 — 루트 vitest는dist를,tests/vitest.config.ts는development조건으로src를 해석해 같은 테스트가두 경로로 갈라져 있었다. 둘 다 42개 통과하지만 src 수정 후 빌드를 안 하면
결과가 달라진다
test:coverage도 watch 모드였다 — 계획에 없던 추가 수정