Skip to content

Add tests for agent-core and optimize configuration files - #3

Merged
AlkaidSTART merged 4 commits into
mainfrom
dev
Aug 5, 2026
Merged

Add tests for agent-core and optimize configuration files#3
AlkaidSTART merged 4 commits into
mainfrom
dev

Conversation

@AlkaidSTART

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI lite review requested due to automatic review settings August 5, 2026 12:42
@AlkaidSTART
AlkaidSTART merged commit 729ed69 into main Aug 5, 2026
1 of 2 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a root-level Vitest test suite for agent-core, updates the Vitest include paths to the new tests/ directory, and removes on-disk memory persistence so memory is kept in-process only.

Changes:

  • Switched Vitest to collect tests from tests/** and added new unit tests for tools, runLoop, and agent.
  • Removed MemoryStore JSON file persistence and updated the CLI /memory view and documentation accordingly.
  • Cleaned up repo configuration/docs to reflect the new testing layout and removal of AGENT_MEMORY_FILE.

Reviewed changes

Copilot reviewed 8 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
vitest.config.ts Updates Vitest to discover tests under tests/ instead of test/.
tests/tools.spec.ts Adds tests for path alias resolution + file tools behavior.
tests/runLoop.spec.ts Adds run loop tests with streamLLM mocked to avoid network calls.
tests/agent.spec.ts Adds agent entry-point test with runLoop mocked.
source/app.tsx Removes display of memory persistence file and last error (now in-memory only).
README.md Updates docs to reflect in-memory memory and the tests/ directory.
packages/agent-core/src/memory/memory-store.ts Removes disk persistence; stores memory only in process.
.gitignore Stops ignoring /test/ directory.
.env.example Removes AGENT_MEMORY_FILE example since persistence was removed.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/tools.spec.ts
Comment on lines +16 to +22
afterEach(async () => {
process.env.AGENT_DESKTOP_DIR = previousDesktopDir;
if (tempDesktop) {
await rm(tempDesktop, { recursive: true, force: true });
tempDesktop = undefined;
}
});
Comment thread README.md
Comment on lines +65 to +66
tests/ # 项目统一单元测试
vitest.config.ts # Vitest 测试配置
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants