Auth0 qs setup --app --type spa --framework svelte --build-tool vite.
(t *testing.T)
| 132 | |
| 133 | // Auth0 qs setup --app --type spa --framework svelte --build-tool vite. |
| 134 | func 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. |
| 147 | func TestDetectProject_VanillaJavaScript(t *testing.T) { |
nothing calls this directly
no test coverage detected