Move preload modules from nyc to mocha
authorRandall Leeds <randall@apache.org>
Fri, 19 Jan 2018 03:53:32 +0000 (19:53 -0800)
committerRandall Leeds <randall@apache.org>
Fri, 19 Jan 2018 03:53:32 +0000 (19:53 -0800)
Allow mocha to be used without nyc to run tests by moving the preload
requires from the nyc cofiguration to the mocha configuration.

.nycrc
test/mocha.opts

diff --git a/.nycrc b/.nycrc
index 4694973..2697469 100644 (file)
--- a/.nycrc
+++ b/.nycrc
@@ -7,10 +7,5 @@
     ".mjs"
   ],
   "instrument": false,
-  "require": [
-    "@std/esm",
-    "@babel/register",
-    "@babel/polyfill"
-  ],
   "sourceMap": false
 }
index 8d96f94..686a1df 100644 (file)
@@ -1,3 +1,6 @@
+-r @std/esm
+-r @babel/register
+-r @babel/polyfill
 -r chai/register-assert
 --recursive
 --watch-extensions mjs