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 2020/08/04 02:07:24 UTC
[incubator-annotator] 01/07: Simplify the mocha invocation by
ignoring node_modules
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 9f584cb59f77e3e5a62b38654a83dfbe5ffb8380
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Mon Aug 3 18:49:35 2020 -0700
Simplify the mocha invocation by ignoring node_modules
---
.mocharc.js | 1 +
package.json | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/.mocharc.js b/.mocharc.js
index 561c0f5..f2eac6a 100644
--- a/.mocharc.js
+++ b/.mocharc.js
@@ -20,6 +20,7 @@
module.exports = {
extension: ['.ts'],
+ ignore: ['node_modules'],
require: ['./babel-register.js', 'global-jsdom/lib/register'],
timeout: 5000,
};
diff --git a/package.json b/package.json
index ebc7380..b995cc9 100644
--- a/package.json
+++ b/package.json
@@ -26,7 +26,7 @@
"prepare": "lerna run prepare",
"prepublishOnly": "yarn run build",
"start": "yarn run web:server",
- "test": "cross-env BABEL_ENV=test nyc mocha packages/*/test/**/*.test.ts",
+ "test": "cross-env BABEL_ENV=test nyc mocha packages/**/*.test.ts",
"typecheck": "tsc",
"validate": "cross-env BABEL_ENV=test mocha test/**/*.test.ts",
"web:build": "webpack --config=web/webpack.config.js --mode development",