Add Vitest source-resolution guard to check:source-resolution #272

Closed
opened 2026-06-04 19:47:24 +00:00 by steve · 0 comments
Owner

Describe the issue.

Problem

Goal

Scope

Non-goals

Acceptance Criteria

Implementation Notes

Suggested Files or Specs To Inspect

Validation Commands

Follow-up Tasks

Implementation Summary

Added check-first-party-vitest-resolution.mjs as a fourth check:source-resolution leg: loads vitest/vite configs in test mode and resolves first-party imports from Vitest test files (including vi.mock targets) to dependency src/. Added scripts/first-party-vitest-config.mjs and wired bases, canvas, pdf, search, telemetry, and notebook vitest configs. Validated: pnpm check:source-resolution with api/dist hidden, pnpm test:scripts, docs check:all without dist, make spec-lint.

Describe the issue. ## Problem ## Goal ## Scope ## Non-goals ## Acceptance Criteria ## Implementation Notes ## Suggested Files or Specs To Inspect ## Validation Commands ## Related Issues - Follow-up to #271 — [Fix plugin-docs Vitest first-party source resolution without api dist](../closed/271-fix-plugin-docs-vitest-first-party-source-resolution-without-api-dist.md) ## Follow-up Tasks ## Implementation Summary Added check-first-party-vitest-resolution.mjs as a fourth check:source-resolution leg: loads vitest/vite configs in test mode and resolves first-party imports from Vitest test files (including vi.mock targets) to dependency src/. Added scripts/first-party-vitest-config.mjs and wired bases, canvas, pdf, search, telemetry, and notebook vitest configs. Validated: pnpm check:source-resolution with api/dist hidden, pnpm test:scripts, docs check:all without dist, make spec-lint. <!-- backlog:task_id=TASK-vitest-source-resolution-guard source_spec=scripts/first-party-source-resolution.mjs related_issue=271 -->
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lapis-notes/lapis#272
No description provided.