-
Notifications
You must be signed in to change notification settings - Fork 11
test(NODE-7278): fix langchainjs tests #105
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| REPO_NAME=langchainjs | ||
| REPO_ORG=langchain-ai | ||
| REPO_ORG=durran | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will revert when langchain-ai/langchainjs#9276 merges. |
||
| DATABASE=langchain_test_db | ||
| REPO_BRANCH=fix-mongodb-tests | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| [] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,6 +13,6 @@ | |
| } | ||
| } | ||
| }, | ||
| "database": "langchain", | ||
| "collectionName": "test" | ||
| "database": "langchain_test_db", | ||
| "collectionName": "langchain_test" | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixing local db and collection names to match what gets created. |
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,16 +26,20 @@ setup_node_and_yarn() { | |
| export PATH | ||
| export npm_config_prefix | ||
|
|
||
| npm install --global yarn | ||
| npm install -g pnpm@latest-10 | ||
| npm install --global corepack --force | ||
| corepack enable | ||
| } | ||
|
|
||
| setup_langchain_integration() { | ||
| cd libs/langchain-mongodb | ||
| pnpm install | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Langchain is using pnpm with corepack now instead of yarn. |
||
| pnpm build | ||
|
|
||
| yarn install | ||
| yarn build | ||
| cd libs/providers/langchain-mongodb | ||
|
|
||
| pnpm install | ||
| pnpm build | ||
|
|
||
| yarn add --dev jest-junit | ||
| export JEST_JUNIT_OUTPUT_NAME=results.xml | ||
| # Trim trailing slashes since lanchainjs is doing string manipulationn, not | ||
| # using the URI class. | ||
|
|
@@ -50,4 +54,4 @@ setup_remote_atlas | |
| setup_node_and_yarn | ||
| setup_langchain_integration | ||
|
|
||
| yarn test:int --reporters=default --reporters=jest-junit | ||
| pnpm test:int --reporter=default --reporter=junit --outputFile=./results.xml | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using vitest instead of jest, reporter options are different. |
||
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.
Langchain moved locations