Skip to content

Commit b5926d1

Browse files
fix: remove hardcoded API key from integration tests
Require SGAI_API_KEY env var instead of fallback Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 22b936e commit b5926d1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/integration.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { describe, expect, test } from "bun:test";
22
import { crawl, extract, getCredits, history, scrape, search } from "../src/index.js";
33

4-
const API_KEY = process.env.SGAI_API_KEY || "sgai-669918e5-55be-4752-a684-f6da788d1384";
4+
const API_KEY = process.env.SGAI_API_KEY;
5+
if (!API_KEY) throw new Error("SGAI_API_KEY env var required for integration tests");
56

67
describe("integration", () => {
78
test("getCredits", async () => {

0 commit comments

Comments
 (0)