From c27ac9e4be8d5f5c07fd106960694f5c3526b30c Mon Sep 17 00:00:00 2001 From: Eberhard Beilharz Date: Tue, 26 Nov 2024 19:14:16 +0100 Subject: [PATCH] chore(common): rename test files This change rename the test files in Common according to the discussion at the Keyman conference in November 2024. --- common/web/types/package.json | 2 +- .../kmx/{test-keyman-targets.ts => keyman-targets.tests.ts} | 0 .../web/types/test/kmx/{test-kmx-file.ts => kmx-file.tests.ts} | 0 .../web/types/test/kvk/{test-kvk-file.ts => kvk-file.tests.ts} | 2 +- .../types/test/kvk/{test-kvk-utils.ts => kvk-utils.tests.ts} | 0 .../{test-pattern-parser.ts => pattern-parser.tests.ts} | 0 .../ldml-keyboard/{test-string-list.ts => string-list.tests.ts} | 0 common/web/types/test/tsconfig.json | 1 - .../web/types/test/util/{test-unescape.ts => unescape.tests.ts} | 0 9 files changed, 2 insertions(+), 3 deletions(-) rename common/web/types/test/kmx/{test-keyman-targets.ts => keyman-targets.tests.ts} (100%) rename common/web/types/test/kmx/{test-kmx-file.ts => kmx-file.tests.ts} (100%) rename common/web/types/test/kvk/{test-kvk-file.ts => kvk-file.tests.ts} (90%) rename common/web/types/test/kvk/{test-kvk-utils.ts => kvk-utils.tests.ts} (100%) rename common/web/types/test/ldml-keyboard/{test-pattern-parser.ts => pattern-parser.tests.ts} (100%) rename common/web/types/test/ldml-keyboard/{test-string-list.ts => string-list.tests.ts} (100%) rename common/web/types/test/util/{test-unescape.ts => unescape.tests.ts} (100%) diff --git a/common/web/types/package.json b/common/web/types/package.json index e9f7c412947..f78557cb524 100644 --- a/common/web/types/package.json +++ b/common/web/types/package.json @@ -48,7 +48,7 @@ "typescript": "^5.4.5" }, "mocha": { - "spec": "build/test/**/test-*.js", + "spec": "build/test/**/*.tests.js", "require": [ "source-map-support/register" ] diff --git a/common/web/types/test/kmx/test-keyman-targets.ts b/common/web/types/test/kmx/keyman-targets.tests.ts similarity index 100% rename from common/web/types/test/kmx/test-keyman-targets.ts rename to common/web/types/test/kmx/keyman-targets.tests.ts diff --git a/common/web/types/test/kmx/test-kmx-file.ts b/common/web/types/test/kmx/kmx-file.tests.ts similarity index 100% rename from common/web/types/test/kmx/test-kmx-file.ts rename to common/web/types/test/kmx/kmx-file.tests.ts diff --git a/common/web/types/test/kvk/test-kvk-file.ts b/common/web/types/test/kvk/kvk-file.tests.ts similarity index 90% rename from common/web/types/test/kvk/test-kvk-file.ts rename to common/web/types/test/kvk/kvk-file.tests.ts index 8a1179b67b2..8e0387fefe3 100644 --- a/common/web/types/test/kvk/test-kvk-file.ts +++ b/common/web/types/test/kvk/kvk-file.tests.ts @@ -2,7 +2,7 @@ import * as fs from 'fs'; import 'mocha'; import { makePathToFixture } from '../helpers/index.js'; import KvkFileReader from "../../src/kvk/kvk-file-reader.js"; -import { verify_balochi_inpage, verify_khmer_angkor } from './test-kvk-utils.js'; +import { verify_balochi_inpage, verify_khmer_angkor } from './kvk-utils.tests.js'; describe('kvk-file-reader', function () { it('kvk-file-reader should read a valid file', function() { diff --git a/common/web/types/test/kvk/test-kvk-utils.ts b/common/web/types/test/kvk/kvk-utils.tests.ts similarity index 100% rename from common/web/types/test/kvk/test-kvk-utils.ts rename to common/web/types/test/kvk/kvk-utils.tests.ts diff --git a/common/web/types/test/ldml-keyboard/test-pattern-parser.ts b/common/web/types/test/ldml-keyboard/pattern-parser.tests.ts similarity index 100% rename from common/web/types/test/ldml-keyboard/test-pattern-parser.ts rename to common/web/types/test/ldml-keyboard/pattern-parser.tests.ts diff --git a/common/web/types/test/ldml-keyboard/test-string-list.ts b/common/web/types/test/ldml-keyboard/string-list.tests.ts similarity index 100% rename from common/web/types/test/ldml-keyboard/test-string-list.ts rename to common/web/types/test/ldml-keyboard/string-list.tests.ts diff --git a/common/web/types/test/tsconfig.json b/common/web/types/test/tsconfig.json index 9678c49945f..21b4145e594 100644 --- a/common/web/types/test/tsconfig.json +++ b/common/web/types/test/tsconfig.json @@ -10,7 +10,6 @@ "allowSyntheticDefaultImports": true }, "include": [ - "**/test-*.ts", "**/*.tests.ts", "./helpers/*.ts", ], diff --git a/common/web/types/test/util/test-unescape.ts b/common/web/types/test/util/unescape.tests.ts similarity index 100% rename from common/web/types/test/util/test-unescape.ts rename to common/web/types/test/util/unescape.tests.ts