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/07/31 09:05:33 UTC

[incubator-annotator] 06/07: Clean up unnecessary .js and .ts extension options

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 d4e2c0f04972ff74ba67ee2f1bdf2d30d79447c8
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Fri Jul 31 02:01:06 2020 -0700

    Clean up unnecessary .js and .ts extension options
---
 .mocharc.js  | 2 ++
 package.json | 6 +++---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/.mocharc.js b/.mocharc.js
index 8058a94..561c0f5 100644
--- a/.mocharc.js
+++ b/.mocharc.js
@@ -19,5 +19,7 @@
  */
 
 module.exports = {
+  extension: ['.ts'],
   require: ['./babel-register.js', 'global-jsdom/lib/register'],
+  timeout: 5000,
 };
diff --git a/package.json b/package.json
index 546fadf..a9496ae 100644
--- a/package.json
+++ b/package.json
@@ -21,13 +21,13 @@
     "build:esm": "cross-env BABEL_ENV=esm yarn build:babel -d esm src",
     "build:misc": "lerna exec -- cp ../../LICENSE ../../NOTICE .",
     "clean": "lerna exec -- rimraf LICENSE NOTICE esm lib",
-    "lint": "eslint --ext js,ts .",
+    "lint": "eslint .",
     "prepare": "lerna run prepare",
     "prepublishOnly": "yarn run build",
     "start": "yarn run web:server",
-    "test": "cross-env BABEL_ENV=test nyc mocha packages/*/test/**/*.test.[jt]s",
+    "test": "cross-env BABEL_ENV=test nyc mocha packages/*/test/**/*.test.ts",
     "typecheck": "tsc",
-    "validate": "cross-env BABEL_ENV=test mocha test/**/*.test.[jt]s",
+    "validate": "cross-env BABEL_ENV=test mocha test/**/*.test.ts",
     "web:build": "webpack --config=web/webpack.config.js --mode development",
     "web:server": "webpack-dev-server --config=web/webpack.config.js --hot --mode development"
   },