Skip to content

Commit aab4af5

Browse files
committed
test(NODE-7278): update langchainjs location
1 parent 888ccca commit aab4af5

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

.evergreen/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ tasks:
282282
tags: [local]
283283
commands:
284284
- func: "fetch repo"
285+
- func: "setup local atlas"
285286
- func: "execute tests"
286287
- command: attach.xunit_results
287288
params:

langchain-js/config.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
REPO_NAME=langchainjs
2-
REPO_ORG=langchain-ai
2+
REPO_ORG=durran
33
DATABASE=langchain_test_db
4+
REPO_BRANCH=fix-mongodb-tests

langchain-js/run.sh

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,20 @@ setup_node_and_yarn() {
2626
export PATH
2727
export npm_config_prefix
2828

29-
npm install --global yarn
29+
npm install -g pnpm@latest-10
30+
npm install --global corepack --force
31+
corepack enable
3032
}
3133

3234
setup_langchain_integration() {
33-
cd libs/langchain-mongodb
35+
pnpm install
36+
pnpm build
3437

35-
yarn install
36-
yarn build
38+
cd libs/providers/langchain-mongodb
39+
40+
pnpm install
41+
pnpm build
3742

38-
yarn add --dev jest-junit
3943
export JEST_JUNIT_OUTPUT_NAME=results.xml
4044
# Trim trailing slashes since lanchainjs is doing string manipulationn, not
4145
# using the URI class.
@@ -50,4 +54,4 @@ setup_remote_atlas
5054
setup_node_and_yarn
5155
setup_langchain_integration
5256

53-
yarn test:int --reporters=default --reporters=jest-junit
57+
pnpm test:int --reporter=default

0 commit comments

Comments
 (0)