Skip to content

Svelte test fixture: remove unused demo dependencies - #1707

Open
xormania wants to merge 2 commits into
oraios:mainfrom
xormania:fix/svelte-fixture-trim
Open

Svelte test fixture: remove unused demo dependencies#1707
xormania wants to merge 2 commits into
oraios:mainfrom
xormania:fix/svelte-fixture-trim

Conversation

@xormania

Copy link
Copy Markdown
Contributor

Removes SvelteKit demo-template dependencies that no test exercises: @fontsource/fira-mono, @neoconfetti/svelte, @tailwindcss/vite, and tailwindcss, plus their only usages (the layout.css imports, the sverdle page's confetti effect, and the tailwind plugin in vite.config.ts).

Why

  • The fixture's dependency surface shrinks measurably: 119 → 91 lockfile package entries (−24%), −456 lockfile lines — fewer packages that can break the fixture's npm ci / svelte-kit sync bootstrap.
  • rolldown / lightningcss stay: they are vite's own dependencies, not tailwind's.

Why the second commit regenerates the lockfile

The lockfile merged in #1648 was generated from the untrimmed package.json. Left as-is, the trimmed fixture's npm ci would fail its integrity check — and the svelte suite would silently skip instead of failing (npm ci failure surfaces as pytest.skip, so CI stays green while testing nothing). Regenerating from the trimmed package.json closes that gap.

Test safety

  • The sverdle page appears in tests only as an expected member of reference/rename result sets (no position queries into it), and the $lib imports that put it there (game.ts, Words.svelte) are untouched.
  • Verified on the rebased branch: clean npm install + svelte-kit sync, svelte suite 16/16 against the regenerated lockfile.

Checklist

  • This PR follows the guidelines in CONTRIBUTING.md regarding the scope of PRs.
  • For changes that add features or fix problems, I have added an entry to CHANGELOG.md, which concisely describes the change. (n/a — test-fixture-only change, no user-facing behavior.)

xormania added 2 commits July 16, 2026 23:20
Drop the SvelteKit demo-template baggage that no test exercises:
@fontsource/fira-mono, @neoconfetti/svelte, @tailwindcss/vite and
tailwindcss, along with their only usages (the layout.css imports, the
sverdle page's confetti effect, and the tailwind vite plugin).

A regenerated lockfile shrinks from 119 to 91 package entries (-24%).
rolldown and lightningcss remain: they are vite's own dependencies, not
tailwind's. Test-relevant files are untouched: tests reference the
sverdle page only as an expected member of reference/rename result
sets, and its $lib imports (game.ts, Words.svelte) are preserved.

Verified: clean npm install + svelte-kit sync + full svelte suite
(16/16) against the trimmed fixture.

Note: oraios#1648 commits a package-lock.json generated from the previous
dependency set; whichever change lands second must regenerate it.
The lockfile merged in oraios#1648 was generated from the untrimmed
package.json. With this branch's dependency trim, the stale lockfile
would make the fixture's `npm ci` fail its integrity check, and the
svelte suite would silently skip instead of running (npm ci failure
surfaces as pytest.skip).

Regenerated from the trimmed package.json (58 packages, down from the
untrimmed set) and verified: `svelte-kit sync` clean, svelte suite
16/16 locally against the regenerated lockfile.
@xormania

Copy link
Copy Markdown
Contributor Author

@MischaPanch out of draft and ready for review (finalized after #1648's lockfile coupling — details in the description).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant