Commit graph

12 commits

Author SHA1 Message Date
lin onetwo
225de8820b test: wiki operation 2025-08-25 01:54:17 +08:00
lin onetwo
0ddbfd2757 test: EsbuildPlugin's define doesn't work, it won't set env properly. 2025-08-19 22:35:33 +08:00
lin onetwo
944e652eb9 Update Testing.md 2025-08-19 20:30:14 +08:00
lin onetwo
b235d0315a Update Testing.md 2025-08-18 13:30:58 +08:00
lin onetwo
6545dfd0e6 Update Testing.md 2025-08-17 17:14:12 +08:00
lin onetwo
6f01c36dd2 fix: ai not response for tool result 2025-08-14 20:55:09 +08:00
lin onetwo
4b55a8b346 test: Fix Electron test process cleanup and update test config
Update test:unit script to use cross-env for ELECTRON_RUN_AS_NODE, ensuring child processes inherit the variable and preventing resource leaks. Remove manual process.env setting from vitest.config.ts and add documentation on handling related errors in Testing.md. Also, add 'hanging-process' reporter to Vitest config for improved diagnostics.
2025-08-12 18:23:30 +08:00
lin onetwo
697466d11f test: Refactor test mocks to dedicated __mocks__ directory
Moved common test mocks from setup-vitest.ts into separate files under src/__tests__/__mocks__ for better organization and maintainability. Updated documentation to reflect the new structure. Removed fileMock.js and updated setup-vitest.ts to import and use the new centralized mocks.
2025-08-12 17:27:54 +08:00
lin onetwo
c72563b0d8 refactor: run tool in plugin, simplify abstraction 2025-07-27 15:14:32 +08:00
lin onetwo
6a1b534089 feat: tools and rag 2025-06-19 17:22:24 +08:00
lin onetwo
654911ad15 docs: test with vitest 2025-06-16 00:52:57 +08:00
lin onetwo
14177cb76a docs: test 2025-06-13 13:56:30 +08:00