Skip to content

Commit df884ec

Browse files
committed
feat: add prune command
1 parent f1e5bc2 commit df884ec

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,7 @@ Fixes for security vulnerabilities are developed in private forks with a closed
515515
- `npm run madge:circular` to detect circular dependencies
516516
- `npm run lint` to check lint compliance
517517
- `npm run definitions` to update the Parse Server options definitions
518+
- `npm run clean:mongodb` to clean mongodb-runner cache if you encounter error `Error: kill ESRCH` during testing
518519
519520
> [!CAUTION]
520521
> It is essential to run `npm run build` *after* switching to a different branch or making a commit and *before* running any tests. Otherwise the tests may run on the build from a different branch or on a build that does not reflect the most recent commits.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@
137137
"test": "npm run testonly",
138138
"test:types": "eslint types/tests.ts -c ./types/eslint.config.mjs",
139139
"posttest": "cross-env mongodb-runner stop --all",
140+
"clean:mongodb": "cross-env mongodb-runner prune",
140141
"coverage": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=8.0.4} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} TESTING=1 nyc jasmine",
141142
"start": "node ./bin/parse-server",
142143
"prettier": "prettier --write {src,spec}/{**/*,*}.js",

0 commit comments

Comments
 (0)