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

Function TestGetQuickstartConfigKey

internal/cli/quickstart_detect_test.go:1309–1580  ·  view source on GitHub ↗

GetQuickstartConfigKey Tests cover all framework/type/buildTool combinations from the requirements table. All inputs are fully populated to avoid interactive prompts.

(t *testing.T)

Source from the content-addressed store, hash-verified

1307// table. All inputs are fully populated to avoid interactive prompts.
1308
1309func TestGetQuickstartConfigKey(t *testing.T) {
1310 tests := []struct {
1311 name string
1312 inputs SetupInputs
1313 wantKey string
1314 wantBuildTool string
1315 wantAutoSelect bool
1316 }{
1317 // SPA .
1318 // Auth0 qs setup --app --type spa --framework react --build-tool vite.
1319 {
1320 name: "spa react vite",
1321 inputs: SetupInputs{App: true, Type: "spa", Framework: "react", BuildTool: "vite", Port: 5173},
1322 wantKey: "spa:react:vite",
1323 wantBuildTool: "vite",
1324 },
1325 {
1326 name: "spa react build-tool none auto-selects vite",
1327 inputs: SetupInputs{App: true, Type: "spa", Framework: "react", BuildTool: "none", Port: 5173},
1328 wantKey: "spa:react:vite",
1329 wantBuildTool: "vite",
1330 wantAutoSelect: true,
1331 },
1332 // Auth0 qs setup --app --type spa --framework angular.
1333 {
1334 name: "spa angular none",
1335 inputs: SetupInputs{App: true, Type: "spa", Framework: "angular", BuildTool: "none", Port: 4200},
1336 wantKey: "spa:angular:none",
1337 wantBuildTool: "none",
1338 },
1339 // Auth0 qs setup --app --type spa --framework vue --build-tool vite.
1340 {
1341 name: "spa vue vite",
1342 inputs: SetupInputs{App: true, Type: "spa", Framework: "vue", BuildTool: "vite", Port: 5173},
1343 wantKey: "spa:vue:vite",
1344 wantBuildTool: "vite",
1345 },
1346 // Auth0 qs setup --app --type spa --framework svelte --build-tool vite.
1347 {
1348 name: "spa svelte vite",
1349 inputs: SetupInputs{App: true, Type: "spa", Framework: "svelte", BuildTool: "vite", Port: 5173},
1350 wantKey: "spa:svelte:vite",
1351 wantBuildTool: "vite",
1352 },
1353 // Auth0 qs setup --app --type spa --framework vanilla-javascript --build-tool vite.
1354 {
1355 name: "spa vanilla-javascript vite",
1356 inputs: SetupInputs{App: true, Type: "spa", Framework: "vanilla-javascript", BuildTool: "vite", Port: 5173},
1357 wantKey: "spa:vanilla-javascript:vite",
1358 wantBuildTool: "vite",
1359 },
1360 // Auth0 qs setup --app --type spa --framework flutter-web.
1361 {
1362 name: "spa flutter-web none",
1363 inputs: SetupInputs{App: true, Type: "spa", Framework: "flutter-web", BuildTool: "none", Port: 3000},
1364 wantKey: "spa:flutter-web:none",
1365 wantBuildTool: "none",
1366 },

Callers

nothing calls this directly

Calls 1

getQuickstartConfigKeyFunction · 0.85

Tested by

no test coverage detected