From 0dbbeba120463bf4d89a3b8c6707a49eb40f0deb Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 25 Apr 2023 14:57:28 +0200 Subject: [PATCH] build: fix code mocha explorer settings with ESM MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .mocharc.json | 6 +++++- .vscode/settings.json | 5 +++++ ui/web/.vscode/settings.json | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) 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" ] -- 2.34.1