Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,11 @@ tasks:
tags: [local]
commands:
- func: "fetch repo"
- func: "setup local atlas"
- func: "execute tests"
- command: attach.xunit_results
params:
file: src/langchain-js/langchainjs/libs/langchain-mongodb/results.xml
file: src/langchain-js/langchainjs/libs/providers/langchain-mongodb/results.xml

- name: test-n8n-js-local
tags: [local]
Expand All @@ -301,7 +302,7 @@ tasks:
- func: "execute tests"
- command: attach.xunit_results
params:
file: src/langchain-js/langchainjs/libs/langchain-mongodb/results.xml
file: src/langchain-js/langchainjs/libs/providers/langchain-mongodb/results.xml

- name: test-mem0-python-local
tags: [ local ]
Expand Down
3 changes: 2 additions & 1 deletion langchain-js/config.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
REPO_NAME=langchainjs
REPO_ORG=langchain-ai
REPO_ORG=durran
DATABASE=langchain_test_db
REPO_BRANCH=fix-mongodb-tests
1 change: 1 addition & 0 deletions langchain-js/database/langchain_test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
4 changes: 2 additions & 2 deletions langchain-js/indexes/langchain_test.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
}
}
},
"database": "langchain",
"collectionName": "test"
"database": "langchain_test_db",
"collectionName": "langchain_test"
}
16 changes: 10 additions & 6 deletions langchain-js/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
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.
Expand All @@ -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