mirror of
https://github.com/hanzoai/pack.git
synced 2026-09-30 23:43:13 +00:00
- 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
25 lines
683 B
Go
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"])
|
|
}
|