Skip to content

Commit 4922a45

Browse files
only set MONGODB_ATLAS_URI for remote tests
1 parent c77465e commit 4922a45

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "default",
3+
"type": "search",
4+
"definition": {
5+
"mappings": {
6+
"fields": {
7+
"e": {
8+
"type": "number"
9+
},
10+
"embedding": {
11+
"dimensions": 1536,
12+
"similarity": "euclidean",
13+
"type": "knnVector"
14+
}
15+
}
16+
}
17+
}
18+
}

langchain-js/run.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,8 @@ yarn build
2525
yarn add --dev jest-junit
2626
export JEST_JUNIT_OUTPUT_NAME=results.xml
2727

28+
if [[ -n "$MONGODB_URI" ]]; then
29+
export MONGODB_ATLAS_URI=$MONGODB_URI
30+
fi
31+
2832
yarn test:int --reporters=default --reporters=jest-junit

0 commit comments

Comments
 (0)