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

Change subject: Fix: Mocha TypeScript project reference
......................................................................

Fix: Mocha TypeScript project reference

It's unclear why but running with the Mocha TypeScript project set as
server causes failing tests under test/ to report success locally and
fail on CI. This patch addresses the symptom and removes the TypeScript
project from Mocha, allowing it to default to the root project.

https://gerrit.wikimedia.org/r/#/c/391898/1

Change-Id: I8519aa1ba7de42122905541e09017bae4f899136
---
M package.json
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/marvin refs/changes/76/391976/1

diff --git a/package.json b/package.json
index 8f120d0..99c2f37 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": "npm-run-all --silent -p lint build mocha -s bundlesize",
     "--- SECONDARY ---": "# Useful but rarely used scripts.",
-    "mocha": "TS_NODE_PROJECT=src/server mocha 
'{src,test}/**/*.test.{ts,tsx,js}'",
+    "mocha": "mocha '{src,test}/**/*.test.{ts,tsx,js}'",
     "bundlesize": "bundlesize",
     "--- HOOKS ---": "# Triggered scripts.",
     "precommit": "npm test -s",

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8519aa1ba7de42122905541e09017bae4f899136
Gerrit-PatchSet: 1
Gerrit-Project: marvin
Gerrit-Branch: master
Gerrit-Owner: Niedzielski <[email protected]>
Gerrit-Reviewer: Sniedzielski <[email protected]>

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

Reply via email to