Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ivyjeong13
Copy link
Contributor

@ivyjeong13 ivyjeong13 commented Jan 29, 2025

  • install vitest & react-testing-library
  • add some base test cases for agent
Screenshot 2025-01-30 at 12 06 05 PM

@ivyjeong13 ivyjeong13 force-pushed the feat/add-vitest-react-testing-library branch 6 times, most recently from 71570b5 to 0cbe0f1 Compare January 30, 2025 16:56
@@ -9,25 +9,25 @@ export const KNOWLEDGE_TOOL = "knowledge";
export type AgentBase = {
name: string;
description: string;
temperature?: number;
cache?: boolean;
temperature?: number | null;
Copy link
Contributor Author

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!

@ivyjeong13 ivyjeong13 marked this pull request as ready for review January 30, 2025 17:07
server: {
watch: {
// Exclude test files from HMR
ignored: !process.env.VITEST
Copy link
Contributor Author

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.

@ivyjeong13 ivyjeong13 force-pushed the feat/add-vitest-react-testing-library branch 2 times, most recently from 7265f6a to 209c862 Compare January 30, 2025 21:47
@ivyjeong13 ivyjeong13 force-pushed the feat/add-vitest-react-testing-library branch from 6bd492c to 6b6ead4 Compare January 30, 2025 23:20
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.

1 participant