-
Notifications
You must be signed in to change notification settings - Fork 95
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(js): Vitest/Jest evals #1343
Merged
Merged
Changes from 66 commits
Commits
Show all changes
70 commits
Select commit
Hold shift + click to select a range
24fda8a
Initial unit test form factor exploration
jacoblee93 5dd083a
Merge
jacoblee93 8ab9e15
Refactor and add matchers
jacoblee93 39b5ed8
Fix bug
jacoblee93 0d424e2
Improve error message
jacoblee93 5903486
Fix ALS issues
jacoblee93 b5c54af
Fix lint
jacoblee93 c644b4d
Fix ALS issue
jacoblee93 70e94f5
Final fix for async local storage issue (hopefully)
jacoblee93 8a7947c
Adds support for .each
jacoblee93 e702a07
Avoid default export
jacoblee93 96b0c55
Fix for Bun
jacoblee93 8ec7fab
Lint
jacoblee93 0a91635
Use passed expect
jacoblee93 3fbfdd5
Merge branch 'main' of github.com:langchain-ai/langsmith-sdk into jac…
jacoblee93 4a62565
Add n parameter, fix deduping
jacoblee93 06a7d44
Allow more config for .each
jacoblee93 bbc628f
Add test for custom matchers, typing tweaks
jacoblee93 05f17ae
Update signature, typing, naming
jacoblee93 385910f
Allow passing experiment creation information into describe
jacoblee93 407470b
Add configurable test tracking
jacoblee93 cb7cb1a
Allow running test over a LangSmith datset
jacoblee93 6b52759
Fix for bun
jacoblee93 23c7466
Speed up latency, make tracking opt-out instead of opt-in
jacoblee93 364ffad
Rename outputs to expected, refactor feedback logging, nicer errors
jacoblee93 6abd444
Fix lint
jacoblee93 f14b31c
Add methods to manually log feedback/outputs
jacoblee93 775cfbe
Fix eval run attribution
jacoblee93 d620051
Fix local mode
jacoblee93 31420aa
Refactor, add Vitest support
jacoblee93 c74573e
Fix lint
jacoblee93 039e7de
Fix type
jacoblee93 314da52
Merge
jacoblee93 8ae1c80
Remove unused dep
jacoblee93 a77d3d5
Adds Jest reporter
jacoblee93 2d93811
Merge branch 'main' of github.com:langchain-ai/langsmith-sdk into jac…
jacoblee93 a810c8a
Revert
jacoblee93 6bb23d5
Adds Vitest reporter, refactor
jacoblee93 574dcbb
Fix
jacoblee93 e1824bb
Allow export of default entrypoints
jacoblee93 54d3825
Add experiment URL, polish
jacoblee93 73712fa
Test name
jacoblee93 6920a90
Update test
jacoblee93 0937427
Fix display when test fails
jacoblee93 42a87dd
Naming fixes
jacoblee93 47d0b7e
Add feedback column collapse
jacoblee93 d07f42e
Merge branch 'main' of github.com:langchain-ai/langsmith-sdk into jac…
jacoblee93 644aca5
Refactor for simplicity, fix experiment creation
jacoblee93 2a45e00
Fix typo
jacoblee93 539e5f2
Adds docstrings
jacoblee93 49e1580
Add docs link in thrown errors
jacoblee93 c0323ab
Merge branch 'main' of github.com:langchain-ai/langsmith-sdk into jac…
jacoblee93 2485055
Fix typo
jacoblee93 c781c9e
Merge
jacoblee93 1056a67
Merge branch 'main' of github.com:langchain-ai/langsmith-sdk into jac…
jacoblee93 c3c6b6d
Adds tracking
jacoblee93 b41d129
Allow other parameterization of test inputs
jacoblee93 f6a1c28
Rename logOutput to logOutputs
jacoblee93 b615035
Fix concurrency issue
jacoblee93 ff412f6
Rename expected -> referenceOutputs and actual -> outputs
jacoblee93 922d20c
Docstring
jacoblee93 503f128
Fix lint
jacoblee93 89313dd
Bump default test timeout
jacoblee93 d12e1ce
Add git commit tagging
jacoblee93 d22f759
Fix tests
jacoblee93 d02dc31
Update
jacoblee93 bd8ecd5
Remove log
jacoblee93 7a982bd
Adds CI
jacoblee93 0046863
Bump version
jacoblee93 98feca9
Fix CI
jacoblee93 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { defineConfig } from "vitest/config"; | ||
|
||
export default defineConfig({ | ||
test: { | ||
include: ["**/*.vitesteval.?(c|m)[jt]s"], | ||
reporters: ["./src/vitest/reporter.ts"], | ||
setupFiles: ["dotenv/config"], | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
These new deps are just for test reporting, if desired we could split reporters into a separate package