From 9775c143c8117e14863063ad52f39e68f8c67768 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 30 Sep 2023 13:39:24 +0200 Subject: [PATCH] test: rename test -> tests MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .cfignore | 2 +- .lintstagedrc.json | 2 +- package.json | 4 ++-- sonar-project.properties | 2 +- {test => tests}/utils/CircularArray.test.ts | 0 {test => tests}/utils/StatisticUtils.test.ts | 0 {test => tests}/utils/Utils.test.ts | 0 7 files changed, 5 insertions(+), 5 deletions(-) rename {test => tests}/utils/CircularArray.test.ts (100%) rename {test => tests}/utils/StatisticUtils.test.ts (100%) rename {test => tests}/utils/Utils.test.ts (100%) 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 -- 2.34.1