feat(cli): add disable analytics option (#496)

This commit is contained in:
Aman Varshney
2025-08-12 08:21:26 +05:30
committed by GitHub
parent 75b0919399
commit 3c00c5453f
7 changed files with 46 additions and 3 deletions

View File

@@ -213,6 +213,18 @@ describe("Programmatic API - Fast Tests", () => {
addons: ["biome"],
});
}, 15000);
test("creates project with analytics disabled", async () => {
const result = await init("no-analytics-app", {
yes: true,
disableAnalytics: true,
install: false,
git: false,
});
expect(result.success).toBe(true);
expect(result.projectConfig.projectName).toBe("no-analytics-app");
}, 15000);
});
describe("Error scenarios", () => {