Skip to content

Commit daaeed8

Browse files
committed
fix: mongodb-runner usage and default version to 6.0.2
1 parent ee25e36 commit daaeed8

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,5 @@ lib/
5959

6060
# Redis Dump
6161
dump.rdb
62+
63+
_mongodb_runner

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -127,16 +127,16 @@
127127
"test:mongodb:6.0.2": "npm run test:mongodb --dbversion=6.0.2",
128128
"test:mongodb:7.0.1": "npm run test:mongodb --dbversion=7.0.1",
129129
"test:postgres:testonly": "cross-env PARSE_SERVER_TEST_DB=postgres PARSE_SERVER_TEST_DATABASE_URI=postgres://postgres:password@localhost:5432/parse_server_postgres_adapter_test_database npm run testonly",
130-
"pretest": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=5.3.2} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} mongodb-runner start -t ${MONGODB_TOPOLOGY} --version ${MONGODB_VERSION} -- --port 27017",
131-
"testonly": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=5.3.2} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} TESTING=1 jasmine",
130+
"pretest": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=6.0.2} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} mongodb-runner start -t ${MONGODB_TOPOLOGY} --version ${MONGODB_VERSION} --runnerDir ./_mongodb_runner -- --port 27017",
131+
"testonly": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=6.0.2} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} TESTING=1 jasmine",
132132
"test": "npm run testonly",
133-
"posttest": "cross-env mongodb-runner stop --all",
134-
"coverage": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=5.3.2} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} TESTING=1 nyc jasmine",
133+
"posttest": "cross-env mongodb-runner stop --all --runnerDir ./_mongodb_runner",
134+
"coverage": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=6.0.2} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} TESTING=1 nyc jasmine",
135135
"start": "node ./bin/parse-server",
136136
"prettier": "prettier --write {src,spec}/{**/*,*}.js",
137137
"prepare": "npm run build",
138138
"postinstall": "node -p 'require(\"./postinstall.js\")()'",
139-
"madge:circular": "node_modules/.bin/madge ./src --circular"
139+
"madge:circular": "node_modules/.bin/madge ./src --circular",
140140
},
141141
"engines": {
142142
"node": ">=18.0.0 <19.0.0 || >=19.0.0 <20.0.0 || >=20.0.0 <21.0.0 || >=22.0.0 <23.0.0"

0 commit comments

Comments
 (0)