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

Function TestDetectProject_FlutterWeb

internal/cli/quickstart_detect_test.go:171–180  ·  view source on GitHub ↗

Auth0 qs setup --app --type spa --framework flutter-web.

(t *testing.T)

Source from the content-addressed store, hash-verified

169
170// Auth0 qs setup --app --type spa --framework flutter-web.
171func TestDetectProject_FlutterWeb(t *testing.T) {
172 dir := t.TempDir()
173 // "web:" nested under "flutter:" is the signal for Flutter Web intent.
174 writeTestFile(t, dir, "pubspec.yaml", "name: my_flutter_web\nflutter:\n sdk: flutter\n web:\n renderer: auto\n")
175
176 got := DetectProject(dir)
177 assert.True(t, got.Detected)
178 assert.Equal(t, "flutter-web", got.Framework)
179 assert.Equal(t, "spa", got.Type)
180}
181
182// pubspec.yaml with sdk: flutter but no web: target and no platform dirs -> native flutter.
183func TestDetectProject_FlutterNativeNoPlatformDirs(t *testing.T) {

Callers

nothing calls this directly

Calls 2

writeTestFileFunction · 0.85
DetectProjectFunction · 0.85

Tested by

no test coverage detected