feat(js-sdk/test): add API_URL env var

This commit is contained in:
Gergő Móricz 2024-09-11 20:32:34 +02:00
parent ad70c30be5
commit 5adfd74cc5

View File

@ -6,7 +6,7 @@ import { describe, test, expect } from '@jest/globals';
dotenv.config(); dotenv.config();
const TEST_API_KEY = process.env.TEST_API_KEY; const TEST_API_KEY = process.env.TEST_API_KEY;
const API_URL = "https://api.firecrawl.dev"; const API_URL = process.env.API_URL ?? "https://api.firecrawl.dev";
describe('FirecrawlApp E2E Tests', () => { describe('FirecrawlApp E2E Tests', () => {
test.concurrent('should throw error for no API key', async () => { test.concurrent('should throw error for no API key', async () => {