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

Function TestDetectProject_NextJS_ConfigJS

internal/cli/quickstart_detect_test.go:221–229  ·  view source on GitHub ↗

-- DetectProject - Regular Web Apps --. Auth0 qs setup --app --type regular --framework nextjs.

(t *testing.T)

Source from the content-addressed store, hash-verified

219
220// Auth0 qs setup --app --type regular --framework nextjs.
221func TestDetectProject_NextJS_ConfigJS(t *testing.T) {
222 dir := t.TempDir()
223 writeTestFile(t, dir, "next.config.js", "")
224
225 got := DetectProject(dir)
226 assert.True(t, got.Detected)
227 assert.Equal(t, "nextjs", got.Framework)
228 assert.Equal(t, "regular", got.Type)
229}
230
231func TestDetectProject_NextJS_ConfigTS(t *testing.T) {
232 dir := t.TempDir()

Callers

nothing calls this directly

Calls 2

writeTestFileFunction · 0.85
DetectProjectFunction · 0.85

Tested by

no test coverage detected