From: Jérôme Benoit Date: Tue, 25 Apr 2023 12:57:28 +0000 (+0200) Subject: build: fix code mocha explorer settings with ESM X-Git-Tag: v1.2.12~75 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=0dbbeba120463bf4d89a3b8c6707a49eb40f0deb;p=e-mobility-charging-stations-simulator.git build: fix code mocha explorer settings with ESM Signed-off-by: Jérôme Benoit --- diff --git a/.mocharc.json b/.mocharc.json index dd2d1062..916e8a6f 100644 --- a/.mocharc.json +++ b/.mocharc.json @@ -13,6 +13,10 @@ "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"] } diff --git a/.vscode/settings.json b/.vscode/settings.json index ed74f643..c3f6a932 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -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": [ diff --git a/ui/web/.vscode/settings.json b/ui/web/.vscode/settings.json index 1e398bbd..f7432095 100644 --- a/ui/web/.vscode/settings.json +++ b/ui/web/.vscode/settings.json @@ -10,6 +10,7 @@ "idtag", "imsi", "ocpp", + "preinstall", "RFID", "webui" ]