test(simulator): use standard file namespace for tests
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 29 May 2023 13:50:46 +0000 (15:50 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 29 May 2023 13:50:46 +0000 (15:50 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.vscode/settings.json
package.json
test/charging-station/ChargingStation.test.ts [moved from test/charging-station/ChargingStationTest.ts with 100% similarity]
test/utils/CircularArray.test.ts [moved from test/utils/CircularArrayTest.ts with 100% similarity]
test/utils/Queue.test.ts [moved from test/utils/QueueTest.ts with 100% similarity]
test/utils/StatisticUtils.test.ts [moved from test/utils/StatisticUtilsTest.ts with 100% similarity]
test/utils/Utils.test.ts [moved from test/utils/UtilsTest.ts with 100% similarity]

index d1b98041a0fe38ab128f61fe3d9f11121b59041a..9b0e7390f63f4e23a8a267e75eb1ebfb5a3fdfbe 100644 (file)
@@ -8,7 +8,7 @@
     "--no-warnings=ExperimentalWarning",
     "--experimental-specifier-resolution=node"
   ],
-  "mochaExplorer.files": ["test/**/*Test.ts"],
+  "mochaExplorer.files": ["test/**/*.test.ts"],
   "mochaExplorer.debuggerConfig": "Debug Simulator Unit Tests",
   "cSpell.words": [
     "benoit",
index 1c29f6bf9b894d0ca3efb70aec6c65bf5f735da3..91566bc5f2d589bd9563b351af791a3ade2dfb8f 100644 (file)
@@ -66,8 +66,8 @@
     "lint": "cross-env TIMING=1 eslint --cache --ext .js,.cjs,.mjs,.ts src",
     "lint:fix": "cross-env TIMING=1 eslint --cache --fix --ext .js,.cjs,.mjs,.ts src",
     "format": "prettier --cache --write .",
-    "test": "c8 mocha test/**/*Test.ts",
-    "test:debug": "mocha --no-parallel --inspect test/**/*Test.ts",
+    "test": "c8 mocha test/**/*.test.ts",
+    "test:debug": "mocha --no-parallel --inspect test/**/*.test.ts",
     "coverage": "c8 report --reporter=lcov",
     "coverage:html": "c8 report --reporter=html",
     "clinic:clean": "clinic clean",