Jhernandez has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/391815 )

Change subject: Tests: Use dot reporter and run tsx tests too
......................................................................

Tests: Use dot reporter and run tsx tests too

* Use the dot reporter for less visual noise when running the tests.
  Specially noticed if running them continuously.
* Also run .test.tsx files as tests, given there may be tests that use
  the jsx syntax, later

Change-Id: I6fe6b2ca16791627e9a276f3b56be0796bb31478
---
M package.json
M test/mocha.opts
2 files changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/marvin refs/changes/15/391815/1

diff --git a/package.json b/package.json
index 8dee5be..1a37e0d 100644
--- a/package.json
+++ b/package.json
@@ -13,7 +13,7 @@
     "test:watch": "nodemon ${VERBOSE:--q} -e js,json,ts,tsx,css --watch src/ 
--exec 'run-p -s lint mocha'",
     "test": "run-p -s lint build mocha",
     "--- SECONDARY ---": "# Useful but rarely used scripts.",
-    "mocha": "TS_NODE_PROJECT=src/server mocha '{src,test}/**/*.test.{ts,js}'",
+    "mocha": "TS_NODE_PROJECT=src/server mocha 
'{src,test}/**/*.test.{ts,tsx,js}'",
     "--- HOOKS ---": "# Triggered scripts.",
     "precommit": "npm test -s",
     "--- INTERNAL ---": "# Private scripts.",
diff --git a/test/mocha.opts b/test/mocha.opts
index cc8598a..cb41ee8 100644
--- a/test/mocha.opts
+++ b/test/mocha.opts
@@ -1,2 +1,3 @@
 --require ts-node/register
 --require ignore-styles
+--reporter dot
\ No newline at end of file

-- 
To view, visit https://gerrit.wikimedia.org/r/391815
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6fe6b2ca16791627e9a276f3b56be0796bb31478
Gerrit-PatchSet: 1
Gerrit-Project: marvin
Gerrit-Branch: master
Gerrit-Owner: Jhernandez <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to