Skip to content

Commit 2e973aa

Browse files
Merge branch 'alpha' into feat-dropUnknownIndexes
2 parents db53f29 + 389de84 commit 2e973aa

File tree

3 files changed

+38
-43
lines changed

3 files changed

+38
-43
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,7 @@ jobs:
210210
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
211211
- name: Install dependencies
212212
run: npm ci
213-
- run: npm run pretest
214-
- run: npm run coverage
213+
- run: npm run coverage:mongodb
215214
env:
216215
CI: true
217216
- name: Upload code coverage

package-lock.json

Lines changed: 31 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
"madge": "8.0.0",
104104
"mock-files-adapter": "file:spec/dependencies/mock-files-adapter",
105105
"mock-mail-adapter": "file:spec/dependencies/mock-mail-adapter",
106-
"mongodb-runner": "5.8.3",
106+
"mongodb-runner": "5.9.3",
107107
"node-abort-controller": "3.1.1",
108108
"node-fetch": "3.2.10",
109109
"nyc": "17.1.0",
@@ -125,18 +125,14 @@
125125
"build:types": "tsc",
126126
"watch": "babel --watch src/ -d lib/ --copy-files",
127127
"watch:ts": "tsc --watch",
128-
"test:mongodb:runnerstart": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=$npm_config_dbversion} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} mongodb-runner start -t ${MONGODB_TOPOLOGY} --version ${MONGODB_VERSION} -- --port 27017",
129-
"test:mongodb:testonly": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=$npm_config_dbversion} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} TESTING=1 jasmine",
130-
"test:mongodb": "npm run test:mongodb:runnerstart --dbversion=$npm_config_dbversion && npm run test:mongodb:testonly --dbversion=$npm_config_dbversion",
131-
"test:mongodb:6.0.19": "npm run test:mongodb --dbversion=6.0.19",
132-
"test:mongodb:7.0.16": "npm run test:mongodb --dbversion=7.0.16",
133-
"test:mongodb:8.0.4": "npm run test:mongodb --dbversion=8.0.4",
128+
"test:mongodb:6.0.19": "MONGODB_VERSION=6.0.19 npm run test",
129+
"test:mongodb:7.0.16": "MONGODB_VERSION=7.0.16 npm run test",
130+
"test:mongodb:8.0.4": "MONGODB_VERSION=8.0.4 npm run test",
134131
"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",
135-
"pretest": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=8.0.4} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} mongodb-runner start -t ${MONGODB_TOPOLOGY} --version ${MONGODB_VERSION} -- --port 27017",
136132
"testonly": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=8.0.4} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} TESTING=1 jasmine",
137-
"test": "npm run testonly",
133+
"test": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=8.0.4} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} mongodb-runner exec -t ${MONGODB_TOPOLOGY} --version ${MONGODB_VERSION} -- --port 27017 -- npm run testonly",
138134
"test:types": "eslint types/tests.ts -c ./types/eslint.config.mjs",
139-
"posttest": "cross-env mongodb-runner stop --all",
135+
"coverage:mongodb": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=8.0.4} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} mongodb-runner exec -t ${MONGODB_TOPOLOGY} --version ${MONGODB_VERSION} -- --port 27017 -- npm run coverage",
140136
"coverage": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=8.0.4} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} TESTING=1 nyc jasmine",
141137
"start": "node ./bin/parse-server",
142138
"prettier": "prettier --write {src,spec}/{**/*,*}.js",

0 commit comments

Comments
 (0)