You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@annotator.apache.org by ra...@apache.org on 2019/10/28 00:57:54 UTC

[incubator-annotator] 02/04: Run validation script without coverage

This is an automated email from the ASF dual-hosted git repository.

randall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git

commit 98ab17cd9a6f9274b21c70720c2c6d8316c3beb5
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Sun Oct 27 17:49:08 2019 -0700

    Run validation script without coverage
    
    Code coverage is not relevant when validating annotations.
---
 .mocharc.js  | 1 +
 package.json | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.mocharc.js b/.mocharc.js
index fbacce9..9ef86f5 100644
--- a/.mocharc.js
+++ b/.mocharc.js
@@ -20,6 +20,7 @@
 
 module.exports = {
   require: [
+    '@babel/register',
     'chai/register-assert',
   ],
 };
diff --git a/package.json b/package.json
index e0ff33f..a415d00 100644
--- a/package.json
+++ b/package.json
@@ -26,7 +26,7 @@
     "prepublishOnly": "yarn run build",
     "start": "webpack-dev-server --hot --mode development",
     "test": "cross-env BABEL_ENV=test nyc mocha packages/*/test/**/*.js",
-    "validate": "cross-env BABEL_ENV=test nyc mocha test/**/*.js"
+    "validate": "cross-env BABEL_ENV=test mocha -r esm test/**/*.js"
   },
   "husky": {
     "hooks": {