From: Jérôme Benoit Date: Sat, 30 Sep 2023 11:39:24 +0000 (+0200) Subject: test: rename test -> tests X-Git-Tag: v1.2.23~6 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=9775c143c8117e14863063ad52f39e68f8c67768;p=e-mobility-charging-stations-simulator.git test: rename test -> tests Signed-off-by: Jérôme Benoit --- diff --git a/.cfignore b/.cfignore index 64b72cdf..16d6b951 100644 --- a/.cfignore +++ b/.cfignore @@ -61,7 +61,7 @@ mta.yaml mta_archives docker src -test +tests ui temp outputs diff --git a/.lintstagedrc.json b/.lintstagedrc.json index fcaf236d..45cd8477 100644 --- a/.lintstagedrc.json +++ b/.lintstagedrc.json @@ -1,5 +1,5 @@ { - "{src,test}/**/*.{ts,tsx,cts,mts}": ["prettier --cache --write", "eslint --cache --fix"], + "{src,tests}/**/*.{ts,tsx,cts,mts}": ["prettier --cache --write", "eslint --cache --fix"], "**/*.{json,md,yml,yaml}": ["prettier --cache --write"], "**/*.{js,jsx,cjs,mjs}": ["prettier --cache --write", "eslint --cache --fix"] } diff --git a/package.json b/package.json index d12d0fa6..7d5cd7d1 100644 --- a/package.json +++ b/package.json @@ -75,8 +75,8 @@ "lint": "cross-env TIMING=1 eslint --cache src", "lint:fix": "cross-env TIMING=1 eslint --cache --fix src", "format": "prettier --cache --write .", - "test": "glob -c \"c8 node --loader tsx --no-warnings=ExperimentalWarning --test\" \"test/**/*.test.ts\"", - "test:debug": "glob -c \"node --loader tsx --no-warnings=ExperimentalWarning --test --inspect\" \"test/**/*.test.ts\"", + "test": "glob -c \"c8 node --loader tsx --no-warnings=ExperimentalWarning --test\" \"tests/**/*.test.ts\"", + "test:debug": "glob -c \"node --loader tsx --no-warnings=ExperimentalWarning --test --inspect\" \"tests/**/*.test.ts\"", "coverage": "c8 report --reporter=lcov", "coverage:html": "c8 report --reporter=html", "clinic:clean": "clinic clean", diff --git a/sonar-project.properties b/sonar-project.properties index b27eac3b..023b0ba5 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -7,7 +7,7 @@ sonar.projectVersion=1.2.22 # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. sonar.sources=src -sonar.tests=test +sonar.tests=tests sonar.javascript.lcov.reportPaths=coverage/lcov.info diff --git a/test/utils/CircularArray.test.ts b/tests/utils/CircularArray.test.ts similarity index 100% rename from test/utils/CircularArray.test.ts rename to tests/utils/CircularArray.test.ts diff --git a/test/utils/StatisticUtils.test.ts b/tests/utils/StatisticUtils.test.ts similarity index 100% rename from test/utils/StatisticUtils.test.ts rename to tests/utils/StatisticUtils.test.ts diff --git a/test/utils/Utils.test.ts b/tests/utils/Utils.test.ts similarity index 100% rename from test/utils/Utils.test.ts rename to tests/utils/Utils.test.ts