mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 07:04:48 +00:00
refactor: move example tests to tests/ directories
This commit is contained in:
parent
136926b445
commit
ab210fa38a
3 changed files with 4 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
import { describe, it, expect } from "vitest";
|
import { describe, it, expect } from "vitest";
|
||||||
import { buildHeaders } from "../shared/sandbox-agent-client.ts";
|
import { buildHeaders } from "@sandbox-agent/example-shared";
|
||||||
import { setupDaytonaSandboxAgent } from "./daytona.ts";
|
import { setupDaytonaSandboxAgent } from "../src/daytona.ts";
|
||||||
|
|
||||||
const shouldRun = Boolean(process.env.DAYTONA_API_KEY);
|
const shouldRun = Boolean(process.env.DAYTONA_API_KEY);
|
||||||
const timeoutMs = Number.parseInt(process.env.SANDBOX_TEST_TIMEOUT_MS || "", 10) || 300_000;
|
const timeoutMs = Number.parseInt(process.env.SANDBOX_TEST_TIMEOUT_MS || "", 10) || 300_000;
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { describe, it, expect } from "vitest";
|
import { describe, it, expect } from "vitest";
|
||||||
import { buildHeaders } from "@sandbox-agent/example-shared";
|
import { buildHeaders } from "@sandbox-agent/example-shared";
|
||||||
import { setupDockerSandboxAgent } from "./docker.ts";
|
import { setupDockerSandboxAgent } from "../src/docker.ts";
|
||||||
|
|
||||||
const shouldRun = process.env.RUN_DOCKER_EXAMPLES === "1";
|
const shouldRun = process.env.RUN_DOCKER_EXAMPLES === "1";
|
||||||
const timeoutMs = Number.parseInt(process.env.SANDBOX_TEST_TIMEOUT_MS || "", 10) || 300_000;
|
const timeoutMs = Number.parseInt(process.env.SANDBOX_TEST_TIMEOUT_MS || "", 10) || 300_000;
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { describe, it, expect } from "vitest";
|
import { describe, it, expect } from "vitest";
|
||||||
import { buildHeaders } from "@sandbox-agent/example-shared";
|
import { buildHeaders } from "@sandbox-agent/example-shared";
|
||||||
import { setupE2BSandboxAgent } from "./e2b.ts";
|
import { setupE2BSandboxAgent } from "../src/e2b.ts";
|
||||||
|
|
||||||
const shouldRun = Boolean(process.env.E2B_API_KEY);
|
const shouldRun = Boolean(process.env.E2B_API_KEY);
|
||||||
const timeoutMs = Number.parseInt(process.env.SANDBOX_TEST_TIMEOUT_MS || "", 10) || 300_000;
|
const timeoutMs = Number.parseInt(process.env.SANDBOX_TEST_TIMEOUT_MS || "", 10) || 300_000;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue