Stabilize workspace Vitest coverage for plugin diagnostics settings #228
Labels
No labels
abandoned
active
audit
blocked
data-safety
difficulty:easy
difficulty:hard
difficulty:high
difficulty:medium
docs
done
duplicate
notebook-v0
open
priority:high
ready
release-critical
safe-mode
spec
spec-backlog
subsystem:api
subsystem:backlog
subsystem:bases
subsystem:ci
subsystem:command
subsystem:configuration
subsystem:consolidate
subsystem:dependencies
subsystem:desktop-electron
subsystem:diffmerge
subsystem:docker
subsystem:docs
subsystem:fuzzy
subsystem:graph
subsystem:hotkeys
subsystem:lapis
subsystem:maint
subsystem:maintenance
subsystem:markdown
subsystem:markdown-lint
subsystem:md018
subsystem:notebook
subsystem:notifications
subsystem:opfs
subsystem:package
subsystem:plugin-markdown
subsystem:plugin-tasks
subsystem:plugins
subsystem:registry
subsystem:release
subsystem:renovate
subsystem:restore
subsystem:scripts
subsystem:search
subsystem:settings
subsystem:spec
subsystem:tasks
subsystem:testing
subsystem:ui
subsystem:web
subsystem:workspace
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lapis-notes/lapis#228
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The milestone added workspace UI helpers for plugin configuration and
diagnostics, but focused workspace Vitest coverage for those helpers is not
currently runnable. Running the diagnostic/settings tests directly fails during
collection with a Vite SSR export error before assertions execute, while the
workspace package
check:allscript is still a no-op. That leaves milestonediagnostic behavior under-tested in the normal package validation path.
Goal
Make the workspace diagnostic/settings test path runnable and wire the relevant
coverage into the workspace package's normal validation gate.
Scope
that causes direct diagnostic/settings tests to fail before collection.
warning/error visibility for plugin runtime diagnostics.
check:allwith a meaningful narrow validationpath that includes these tests or an equivalent package-local gate.
narrower supported command.
Non-goals
testability issue.
expose them correctly in workspace UI.
Acceptance Criteria
the repo root.
pnpm --filter @lapis-notes/workspace check:allis no longer a no-op andfails when the diagnostic/settings test coverage fails.
path are visible/searchable in the configuration UI helper layer.
command if the package keeps multiple test modes.
changes affect app boot or runtime behavior.
Implementation Notes
ReferenceError: __vite_ssr_exportName__ is not definedwhile running focusedworkspace Vitest files.
working runtime-import Vitest path; reuse that context rather than re-adding
brittle tests.
unless the fix touches boot/runtime code.
Suggested Files or Specs To Inspect
packages/workspace/package.jsonpackages/workspace/src/lib/components/configuration/plugin-feature-sections.test.tspackages/workspace/src/lib/components/configuration/settings-search.test.tspackages/workspace/src/lib/components/configuration/plugin-feature-sections.tspackages/workspace/src/lib/components/configuration/use-text-highlight.tsspec/src/20-packages/workspace/index.mdspec/src/80-maintenance/monorepo-scripts.mdValidation Commands
pnpm --filter @lapis-notes/workspace exec vitest run src/lib/components/configuration/plugin-feature-sections.test.ts src/lib/components/configuration/settings-search.test.tspnpm --filter @lapis-notes/workspace check:allmake spec-lintmdbook build specRelated Issues
Follow-up Tasks
Implementation Summary
Added workspace Vitest configuration with first-party source resolution and renderer shims, upgraded workspace Vitest to 4.1.7, wired check:all to the focused unit gate, and documented the supported workspace unit command.