Skip to content

Commit

Permalink
chore: replace deprecated mocha.opts with package.json config (#140)
Browse files Browse the repository at this point in the history
With current release of mocha, `npm test` prints a deprecation warning:

(node:10712) DeprecationWarning: Configuration via mocha.opts is
DEPRECATED and will be removed from a future version of Mocha. Use RC
files or package.json instead.

Move to package.json to eliminate the warning.
  • Loading branch information
Trott authored Feb 9, 2020
1 parent 1c24bce commit c35d0c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,11 @@
"exclude": [
"build/test"
]
},
"mocha": {
"check-leaks": true,
"timeout": 10000,
"throw-deprecation": true,
"require": "source-map-support/register"
}
}
4 changes: 0 additions & 4 deletions test/mocha.opts

This file was deleted.

0 comments on commit c35d0c5

Please sign in to comment.