test(simulator): recommend and setup extension for node.js test runner
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 6 Oct 2023 17:38:51 +0000 (19:38 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 6 Oct 2023 17:38:51 +0000 (19:38 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.vscode/extensions.json
.vscode/settings.json
e-mobility-charging-stations-simulator.code-workspace

index df91b6165d6b8685dec6ecf524c14983f2a1fee7..d5f393d3a0cbec5103532dc95dc1a454cc18b031 100644 (file)
@@ -3,6 +3,7 @@
   // for the documentation about the extensions.json format
   "recommendations": [
     "codezombiech.gitignore",
+    "connor4312.nodejs-testing",
     "dbaeumer.vscode-eslint",
     "eamodio.gitlens",
     "EditorConfig.EditorConfig",
index c4fe66830fa6abe0b438ef12dd722c7cad9e5701..3768a728b4de18b4acc3baf57c675c5e154d6bd0 100644 (file)
@@ -2,7 +2,6 @@
   "editor.codeActionsOnSave": {
     "source.fixAll": true
   },
-  "testExplorer.useNativeTesting": true,
   "cSpell.words": [
     "backoff",
     "benoit",
index 6aca5a27e3b6c9fce8cb468a4dddf3a8cef61760..4975eed027a3bcc5ed12d9c4d8eaeb3cd6450744 100644 (file)
@@ -6,5 +6,17 @@
     {
       "path": "ui/web"
     }
-  ]
+  ],
+  "settings": {
+    "nodejs-testing.extensions": [
+      {
+        "extensions": ["mjs", "cjs", "js"],
+        "parameters": []
+      },
+      {
+        "extensions": ["mts", "cts", "ts"],
+        "parameters": ["--loader", "tsx"]
+      }
+    ]
+  }
 }