We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52f20ab commit 54d475cCopy full SHA for 54d475c
src/__tests__/App.test.tsx
@@ -0,0 +1,21 @@
1
+import React from "react"
2
+import { render } from "ink-testing-library"
3
+import { test, expect, describe, mock } from "bun:test"
4
+import { App } from "../App"
5
+import { AgentStore } from "../store"
6
+
7
+mock.module("../hooks/useConfig", () => ({
8
+ useConfig: mock(() => {}),
9
+}))
10
11
+describe("App", () => {
12
+ test("should render null when not booted", () => {
13
+ const { lastFrame } = render(
14
+ <AgentStore.Provider>
15
+ <App />
16
+ </AgentStore.Provider>
17
+ )
18
19
+ expect(lastFrame()).toBe("")
20
+ })
21
+})
0 commit comments