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

Function TestDetectProject_Vue

internal/cli/quickstart_detect_test.go:121–131  ·  view source on GitHub ↗

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

(t *testing.T)

Source from the content-addressed store, hash-verified

119
120// Auth0 qs setup --app --type spa --framework vue --build-tool vite.
121func TestDetectProject_Vue(t *testing.T) {
122 dir := t.TempDir()
123 writeTestFile(t, dir, "vite.config.js", "")
124 writeTestFile(t, dir, "package.json", `{"dependencies":{"vue":"^3"}}`)
125
126 got := DetectProject(dir)
127 assert.True(t, got.Detected)
128 assert.Equal(t, "vue", got.Framework)
129 assert.Equal(t, "spa", got.Type)
130 assert.Equal(t, "vite", got.BuildTool)
131}
132
133// Auth0 qs setup --app --type spa --framework svelte --build-tool vite.
134func TestDetectProject_Svelte(t *testing.T) {

Callers

nothing calls this directly

Calls 2

writeTestFileFunction · 0.85
DetectProjectFunction · 0.85

Tested by

no test coverage detected