build: fix code mocha explorer settings with ESM
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 25 Apr 2023 12:57:28 +0000 (14:57 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 25 Apr 2023 12:57:28 +0000 (14:57 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.mocharc.json
.vscode/settings.json
ui/web/.vscode/settings.json

index dd2d1062d4e2247eb1455ca652492a040cacb795..916e8a6fc98d69c004755ecb57ec9e4c1daab701 100644 (file)
   "full-trace": true,
   "enable-source-maps": true,
   "exit": true,
-  "node-option": ["experimental-specifier-resolution=node", "loader=ts-node/esm"],
+  "node-option": [
+    "loader=ts-node/esm",
+    "no-warnings=ExperimentalWarning",
+    "experimental-specifier-resolution=node"
+  ],
   "require": ["mochawesome/register"]
 }
index ed74f64355114623764c9244eff862e6eb635549..c3f6a9320129e8391fe9f4f04918b70b02bf81f9 100644 (file)
@@ -3,6 +3,11 @@
     "source.fixAll": true
   },
   "testExplorer.useNativeTesting": true,
+  "mochaExplorer.nodeArgv": [
+    "--loader=ts-node/esm",
+    "--no-warnings=ExperimentalWarning",
+    "--experimental-specifier-resolution=node"
+  ],
   "mochaExplorer.files": ["test/**/*Test.ts"],
   "mochaExplorer.debuggerConfig": "Debug Simulator Unit Tests",
   "cSpell.words": [
index 1e398bbd9fa212c968c7c4d311107f01e8c0879a..f7432095e5d5046ca43acbedfbae39e8fb8bae79 100644 (file)
@@ -10,6 +10,7 @@
     "idtag",
     "imsi",
     "ocpp",
+    "preinstall",
     "RFID",
     "webui"
   ]