refactor: centralize all tests into src/tests/ (#58)
Co-authored-by: letta-code <248085862+letta-code@users.noreply.github.com> Co-authored-by: Charles Packer <cpacker@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
4de8aa8974
commit
d295ab19b3
@@ -1,7 +1,7 @@
|
||||
import { describe, expect, test, mock, beforeAll, afterAll } from "bun:test";
|
||||
import { writeFileSync, unlinkSync } from "node:fs";
|
||||
import { join } from "node:path";
|
||||
import { imageFromFile, imageFromBase64, imageFromURL } from "./index.js";
|
||||
import { imageFromFile, imageFromBase64, imageFromURL } from "../index.js";
|
||||
|
||||
describe("Image helpers", () => {
|
||||
describe("imageFromFile", () => {
|
||||
@@ -3,7 +3,7 @@ import {
|
||||
isHeadlessAutoAllowTool,
|
||||
isInteractiveApprovalTool,
|
||||
requiresRuntimeUserInput,
|
||||
} from "./interactiveToolPolicy.js";
|
||||
} from "../interactiveToolPolicy.js";
|
||||
|
||||
describe("interactive tool policy", () => {
|
||||
test("marks interactive approval tools", () => {
|
||||
@@ -1,6 +1,6 @@
|
||||
import { describe, expect, test } from "bun:test";
|
||||
import { Session } from "./session.js";
|
||||
import type { MessageWire, SDKMessage, WireMessage } from "./types.js";
|
||||
import { Session } from "../session.js";
|
||||
import type { MessageWire, SDKMessage, WireMessage } from "../types.js";
|
||||
|
||||
const BUFFER_LIMIT = 100;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { describe, expect, test } from "bun:test";
|
||||
import { createRequire } from "node:module";
|
||||
import { existsSync } from "node:fs";
|
||||
import { SubprocessTransport } from "./transport.js";
|
||||
import { SubprocessTransport } from "../transport.js";
|
||||
|
||||
describe("CLI resolution", () => {
|
||||
test("resolves @letta-ai/letta-code via package main export", () => {
|
||||
@@ -1,5 +1,5 @@
|
||||
import { describe, expect, test } from "bun:test";
|
||||
import { validateCreateAgentOptions, validateCreateSessionOptions } from "./validation.js";
|
||||
import { validateCreateAgentOptions, validateCreateSessionOptions } from "../validation.js";
|
||||
|
||||
describe("validation", () => {
|
||||
test("accepts valid session skill/reminder/sleeptime options", () => {
|
||||
Reference in New Issue
Block a user