Files
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

48 lines
924 B
Go

package elixir
import (
"testing"
testingUtils "github.com/hanzoai/pack/core/testing"
"github.com/stretchr/testify/require"
)
func TestElixir(t *testing.T) {
tests := []struct {
name string
path string
detected bool
expectedMain string
}{
{
name: "deno project with main.ts",
path: "../../../examples/elixir-phoenix",
detected: true,
},
{
name: "non-deno project",
path: "../../../examples/node-npm",
detected: false,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
ctx := testingUtils.CreateGenerateContext(t, tt.path)
provider := ElixirProvider{}
detected, err := provider.Detect(ctx)
require.NoError(t, err)
require.Equal(t, tt.detected, detected)
if detected {
err = provider.Initialize(ctx)
require.NoError(t, err)
err = provider.Plan(ctx)
require.NoError(t, err)
}
})
}
}