From: Jérôme Benoit Date: Mon, 29 May 2023 13:50:46 +0000 (+0200) Subject: test(simulator): use standard file namespace for tests X-Git-Tag: v1.2.15~7 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=d4ad9d45e762ddb25f47b16c175a1509e89f422b;p=e-mobility-charging-stations-simulator.git test(simulator): use standard file namespace for tests Signed-off-by: Jérôme Benoit --- diff --git a/.vscode/settings.json b/.vscode/settings.json index d1b98041..9b0e7390 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -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", diff --git a/package.json b/package.json index 1c29f6bf..91566bc5 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/test/charging-station/ChargingStationTest.ts b/test/charging-station/ChargingStation.test.ts similarity index 100% rename from test/charging-station/ChargingStationTest.ts rename to test/charging-station/ChargingStation.test.ts diff --git a/test/utils/CircularArrayTest.ts b/test/utils/CircularArray.test.ts similarity index 100% rename from test/utils/CircularArrayTest.ts rename to test/utils/CircularArray.test.ts diff --git a/test/utils/QueueTest.ts b/test/utils/Queue.test.ts similarity index 100% rename from test/utils/QueueTest.ts rename to test/utils/Queue.test.ts diff --git a/test/utils/StatisticUtilsTest.ts b/test/utils/StatisticUtils.test.ts similarity index 100% rename from test/utils/StatisticUtilsTest.ts rename to test/utils/StatisticUtils.test.ts diff --git a/test/utils/UtilsTest.ts b/test/utils/Utils.test.ts similarity index 100% rename from test/utils/UtilsTest.ts rename to test/utils/Utils.test.ts