Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

test: usedbauth envs wth

rafaelsideguide78edf13ec6f5
diff --git a/apps/api/src/__tests__/e2e_v1_withAuth/index.test.ts b/apps/api/src/__tests__/e2e_v1_withAuth/index.test.ts
index 913f9408c..5631adf06 100644
--- a/apps/api/src/__tests__/e2e_v1_withAuth/index.test.ts
+++ b/apps/api/src/__tests__/e2e_v1_withAuth/index.test.ts
@@ -22,6 +22,13 @@ describe("E2E Tests for v1 API Routes", () => {
const response: ScrapeResponseRequestTest = await request(TEST_URL).get(
"/is-production"
);
+
+ console.log('process.env.USE_DB_AUTHENTICATION', process.env.USE_DB_AUTHENTICATION);
+ console.log('?', process.env.USE_DB_AUTHENTICATION === 'true');
+ const useDbAuthentication = process.env.USE_DB_AUTHENTICATION === 'true';
+ console.log('useDbAuthentication', useDbAuthentication);
+ console.log('!useDbAuthentication', !useDbAuthentication);
+
expect(response.statusCode).toBe(200);
expect(response.body).toHaveProperty("isProduction");
});