Skip to content

Commit 2fb5b17

Browse files
committed
fix: abs paths in tests
1 parent 54d475c commit 2fb5b17

File tree

8 files changed

+17
-17
lines changed

8 files changed

+17
-17
lines changed

src/components/__tests__/ChatHeader.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React from "react"
22
import { render } from "ink-testing-library"
33
import { test, expect, describe } from "bun:test"
4-
import { ChatHeader } from "../ChatHeader"
5-
import { AgentStore } from "../../store"
4+
import { ChatHeader } from "components/ChatHeader"
5+
import { AgentStore } from "store"
66

77
describe("ChatHeader", () => {
88
test("should render title", () => {

src/components/__tests__/Stats.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React from "react"
22
import { render } from "ink-testing-library"
33
import { test, expect, describe } from "bun:test"
4-
import { Stats } from "../Stats"
5-
import { AgentStore } from "../../store"
4+
import { Stats } from "components/Stats"
5+
import { AgentStore } from "store"
66

77
describe("Stats", () => {
88
test("should display stats string", () => {

src/components/__tests__/ToolPermissionPrompt.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React from "react"
22
import { render } from "ink-testing-library"
33
import { test, expect, describe } from "bun:test"
4-
import { ToolPermissionPrompt } from "../ToolPermissionPrompt"
5-
import { AgentStore } from "../../store"
4+
import { ToolPermissionPrompt } from "components/ToolPermissionPrompt"
5+
import { AgentStore } from "store"
66

77
describe("ToolPermissionPrompt", () => {
88
test("should not render when no pending permission", () => {

src/components/__tests__/ToolUses.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React from "react"
22
import { render } from "ink-testing-library"
33
import { test, expect, describe } from "bun:test"
4-
import { ToolUses } from "../ToolUses"
5-
import { AgentStore } from "../../store"
6-
import type { ToolUse } from "../../store"
4+
import { ToolUses } from "components/ToolUses"
5+
import { AgentStore } from "store"
6+
import type { ToolUse } from "store"
77

88
describe("ToolUses", () => {
99
test("should display MCP tool with server name", () => {

src/components/__tests__/UserInput.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React from "react"
22
import { render } from "ink-testing-library"
33
import { test, expect, describe } from "bun:test"
4-
import { UserInput } from "../UserInput"
5-
import { AgentStore } from "../../store"
4+
import { UserInput } from "components/UserInput"
5+
import { AgentStore } from "store"
66

77
describe("UserInput", () => {
88
test("should render input field", () => {

src/hooks/__tests__/useCycleMessages.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React from "react"
22
import { render } from "ink-testing-library"
33
import { test, expect, describe } from "bun:test"
4-
import { useCycleMessages } from "../useCycleMessages"
5-
import { AgentStore } from "../../store"
4+
import { useCycleMessages } from "hooks/useCycleMessages"
5+
import { AgentStore } from "store"
66

77
describe("useCycleMessages", () => {
88
test("should initialize with no messages", () => {

src/utils/__tests__/getPrompt.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { test, expect, describe } from "bun:test"
2-
import { getPrompt, buildSystemPrompt } from "../getPrompt"
3-
import type { AgentChatConfig } from "../../store"
2+
import { getPrompt, buildSystemPrompt } from "utils/getPrompt"
3+
import type { AgentChatConfig } from "store"
44

55
describe("getPrompt", () => {
66
test("should load system prompt from file", () => {

src/utils/__tests__/getToolInfo.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import {
33
getToolInfo,
44
getDisallowedTools,
55
isToolDisallowed,
6-
} from "../getToolInfo"
7-
import type { AgentChatConfig } from "../../store"
6+
} from "utils/getToolInfo"
7+
import type { AgentChatConfig } from "store"
88

99
describe("getToolInfo", () => {
1010
test("should extract server name and tool name from MCP format", () => {

0 commit comments

Comments
 (0)