Skip to content

Commit

Permalink
test: stub env
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas2D committed Sep 6, 2024
1 parent 5316001 commit 66cd4b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/memory/tokenMemory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ import * as R from "remeda";
import { verifyDeserialization } from "@tests/e2e/utils.js";

describe("Token Memory", () => {
beforeEach(() => {
vi.stubEnv("GENAI_API_KEY", "123");
});

const getInstance = (config: {
llmFactor: number;
localFactor: number;
Expand Down Expand Up @@ -111,7 +115,6 @@ describe("Token Memory", () => {
});

it("Serializes", async () => {
vi.stubEnv("GENAI_API_KEY", "123");
const instance = getInstance({
llmFactor: 2,
localFactor: 1,
Expand Down

0 comments on commit 66cd4b1

Please sign in to comment.