MCPcopy Create free account
hub / github.com/auth0/auth0-cli / TestDetectProject_Svelte

Function TestDetectProject_Svelte

internal/cli/quickstart_detect_test.go:134–144  ·  view source on GitHub ↗

Auth0 qs setup --app --type spa --framework svelte --build-tool vite.

(t *testing.T)

Source from the content-addressed store, hash-verified

132
133// Auth0 qs setup --app --type spa --framework svelte --build-tool vite.
134func TestDetectProject_Svelte(t *testing.T) {
135 dir := t.TempDir()
136 writeTestFile(t, dir, "vite.config.ts", "")
137 writeTestFile(t, dir, "package.json", `{"dependencies":{"svelte":"^4"}}`)
138
139 got := DetectProject(dir)
140 assert.True(t, got.Detected)
141 assert.Equal(t, "svelte", got.Framework)
142 assert.Equal(t, "spa", got.Type)
143 assert.Equal(t, "vite", got.BuildTool)
144}
145
146// Auth0 qs setup --app --type spa --framework vanilla-javascript --build-tool vite.
147func TestDetectProject_VanillaJavaScript(t *testing.T) {

Callers

nothing calls this directly

Calls 2

writeTestFileFunction · 0.85
DetectProjectFunction · 0.85

Tested by

no test coverage detected