Skip to content

Commit 9417424

Browse files
authored
Merge pull request #13948 from hasezoey/mochaconfig
chore: move mocha config from package.json to mocharc
2 parents 17c4ec3 + 6401884 commit 9417424

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

.mocharc.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@ reporter: spec # better to identify failing / slow tests than "dot"
22
ui: bdd # explicitly setting, even though it is mocha default
33
require:
44
- test/mocha-fixtures.js
5+
extension:
6+
- test.js
7+
watch-files:
8+
- test/**/*.js

package.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,6 @@
130130
},
131131
"homepage": "https://mongoosejs.com",
132132
"browser": "./dist/browser.umd.js",
133-
"mocha": {
134-
"extension": [
135-
"test.js"
136-
],
137-
"watch-files": [
138-
"test/**/*.js"
139-
]
140-
},
141133
"config": {
142134
"mongodbMemoryServer": {
143135
"disablePostinstall": true

0 commit comments

Comments
 (0)