From d4ad9d45e762ddb25f47b16c175a1509e89f422b Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 29 May 2023 15:50:46 +0200 Subject: [PATCH] test(simulator): use standard file namespace for tests MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .vscode/settings.json | 2 +- package.json | 4 ++-- .../{ChargingStationTest.ts => ChargingStation.test.ts} | 0 test/utils/{CircularArrayTest.ts => CircularArray.test.ts} | 0 test/utils/{QueueTest.ts => Queue.test.ts} | 0 test/utils/{StatisticUtilsTest.ts => StatisticUtils.test.ts} | 0 test/utils/{UtilsTest.ts => Utils.test.ts} | 0 7 files changed, 3 insertions(+), 3 deletions(-) rename test/charging-station/{ChargingStationTest.ts => ChargingStation.test.ts} (100%) rename test/utils/{CircularArrayTest.ts => CircularArray.test.ts} (100%) rename test/utils/{QueueTest.ts => Queue.test.ts} (100%) rename test/utils/{StatisticUtilsTest.ts => StatisticUtils.test.ts} (100%) rename test/utils/{UtilsTest.ts => Utils.test.ts} (100%) 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 -- 2.34.1