-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add vitest & react-testing-library #1522
base: main
Are you sure you want to change the base?
feat: add vitest & react-testing-library #1522
Conversation
ivyjeong13
commented
Jan 29, 2025
•
edited
Loading
edited
- install vitest & react-testing-library
- add some base test cases for agent
71570b5
to
0cbe0f1
Compare
@@ -9,25 +9,25 @@ export const KNOWLEDGE_TOOL = "knowledge"; | |||
export type AgentBase = { | |||
name: string; | |||
description: string; | |||
temperature?: number; | |||
cache?: boolean; | |||
temperature?: number | null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While going through and making mocks, noticed some properties that had null that didn't match with your types so updated them as well. Lemme know if that's not needed and can revert!
server: { | ||
watch: { | ||
// Exclude test files from HMR | ||
ignored: !process.env.VITEST |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added changes here to avoid hot reloading React application when changing test files while running make dev
. But when running pnpm test
, changes in files will still trigger a re-run of the test suites.
7265f6a
to
209c862
Compare
6bd492c
to
6b6ead4
Compare