Skip to content

Conversation

@metonym
Copy link
Collaborator

@metonym metonym commented Oct 19, 2025

Existing typecheck and unit tests are run using Svelte 4.

We should also run these automated checks using Svelte 5.

Migration script

#!/bin/bash

TEST_DIR=$1
COMPONENT=$2

cd "$(dirname "$0")/../tests/$TEST_DIR" || exit 1

if [ ! -f "${COMPONENT}.test.svelte" ]; then
  echo "Error: ${COMPONENT}.test.svelte not found"
  exit 1
fi

if [ -f "${COMPONENT}.svelte5.test.svelte" ]; then
  echo "Svelte 5 wrapper already exists, skipping"
  exit 0
fi

cp "${COMPONENT}.test.svelte" "${COMPONENT}.svelte5.test.svelte"

echo "Created ${COMPONENT}.svelte5.test.svelte - manual editing required"

@metonym metonym force-pushed the master branch 3 times, most recently from 234c1f9 to e774974 Compare October 28, 2025 20:48
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