web: Vitest after svelte-query 6; spaces that Svelte trimmed out of four labels (#8532)
release / go (push) Successful in 1m55s
release / web (push) Successful in 1m25s
release / govulncheck (push) Successful in 17s
release / integration (push) Successful in 2m40s
release / android (push) Successful in 2m6s
release / Build signed APK (push) Successful in 2m0s
release / Build + push container image (push) Successful in 37s

Run 11484 failed 18 Vitest tests in 7 files:
- Two tests still mocked a query as a hand-written store ({ subscribe }).
  They now mock a plain query object.
- TrackMenu now creates its hidden-tracks query when it mounts, not lazily
  as the old $derived store did, so page tests that render track rows mock
  #lib/api/quarantine like the component tests already did.
- The tuning trends headers read "Plays(window)". Svelte drops the
  leading space inside <span> (window)</span>, and jsdom 31 no longer
  hides that. The same gluing showed in:
  - "Title· File missing" on track rows;
  - the track position on Suspect sources;
  - the screen-reader "(new)" on notifications.
  Each space now sits outside the span, or is an expression Svelte keeps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-04 14:09:20 -05:00
co-authored by Claude Opus 5.5
parent 72e8702e53
commit feef626ba5
11 changed files with 32 additions and 24 deletions
+8 -13
View File
@@ -28,19 +28,14 @@ vi.mock('#lib/api/history.js', async () => {
return {
...actual,
createHistoryQuery: () => ({
subscribe: (run: (v: unknown) => void) => {
run({
data: mockData,
isPending: mockIsPending,
isError: mockIsError,
error: mockIsError ? new Error('test') : null,
hasNextPage: mockHasNextPage,
isFetchingNextPage: mockIsFetchingNextPage,
fetchNextPage: mockFetchNextPage,
refetch: mockRefetch
});
return () => {};
}
data: mockData,
isPending: mockIsPending,
isError: mockIsError,
error: mockIsError ? new Error('test') : null,
hasNextPage: mockHasNextPage,
isFetchingNextPage: mockIsFetchingNextPage,
fetchNextPage: mockFetchNextPage,
refetch: mockRefetch
})
};
});