jenkins-bot has submitted this change and it was merged. ( 
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(-)

Approvals:
  Niedzielski: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/package.json b/package.json
index 7bd76d4..9795813 100644
--- a/package.json
+++ b/package.json
@@ -12,7 +12,7 @@
     "lint": "eslint --cache --max-warnings 0 
--report-unused-disable-directives --ext ts,tsx,js,json .",
     "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: merged
Gerrit-Change-Id: I6fe6b2ca16791627e9a276f3b56be0796bb31478
Gerrit-PatchSet: 2
Gerrit-Project: marvin
Gerrit-Branch: master
Gerrit-Owner: Jhernandez <[email protected]>
Gerrit-Reviewer: Niedzielski <[email protected]>
Gerrit-Reviewer: Sniedzielski <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to