Auth0 qs setup --app --type spa --framework flutter-web.
(t *testing.T)
| 169 | |
| 170 | // Auth0 qs setup --app --type spa --framework flutter-web. |
| 171 | func 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. |
| 183 | func TestDetectProject_FlutterNativeNoPlatformDirs(t *testing.T) { |
nothing calls this directly
no test coverage detected