Files
pack/core/providers/node/svelte_test.go
T
zeekay 7844a60aff refactor(pack): modernize to github.com/hanzoai/pack and remove upstream branding
- Migrate module path to github.com/hanzoai/pack across all Go packages
- Remove legacy upstream docs and competitor brand references
- Modernize LLM.md and mise.toml for pristine Hanzo Pack builder
2026-09-04 00:40:42 -07:00

25 lines
683 B
Go

package node
import (
"testing"
"github.com/hanzoai/pack/core/generate"
testingUtils "github.com/hanzoai/pack/core/testing"
"github.com/stretchr/testify/require"
)
func TestSvelteKitAdapterAuto(t *testing.T) {
ctx := testingUtils.CreateGenerateContext(t, "../../../examples/node-svelte-kit")
provider := NodeProvider{}
require.NoError(t, provider.Initialize(ctx))
require.NoError(t, provider.Plan(ctx))
require.Equal(t, DefaultSvelteKitStartCommand, ctx.Deploy.StartCmd)
step := ctx.GetStepByName("build")
require.NotNil(t, step)
build, ok := (*step).(*generate.CommandStepBuilder)
require.True(t, ok)
require.Equal(t, "true", build.Variables["GCP_BUILDPACKS"])
}