-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
Description
Summary
The src/tests/paraglide.test.ts test fails in a fresh git worktree because the i18n files ($lib/i18n/paraglide/messages.js) are generated during build but not committed.
Steps to Reproduce
- Create a new worktree:
git worktree add ../test -b test-branch - Run
npm install - Run
npm run test:run -- src/tests/paraglide.test.ts - Test fails with: "Failed to resolve import '$lib/i18n/paraglide/messages.js'"
Expected Behavior
Tests should pass after npm install without requiring a full build.
Proposed Solutions
- Add i18n generation to postinstall: Add
paraglide-js compileto npm postinstall script - Add setup script for tests: Ensure i18n files exist before running tests
- Skip test if files don't exist: Make test gracefully skip if i18n not generated
Acceptance Criteria
-
npm run test:runpasses in fresh worktree afternpm install
Logged via /create-issue quick capture