diff --git a/src/pheatures/Compare.test.ts b/test/pheatures/Compare.test.ts similarity index 87% rename from src/pheatures/Compare.test.ts rename to test/pheatures/Compare.test.ts index 34f0050..f125421 100644 --- a/src/pheatures/Compare.test.ts +++ b/test/pheatures/Compare.test.ts @@ -2,8 +2,8 @@ import { expect, test } from "vitest"; import { CONS, DIA, VOW } from "@/utils/phonemes"; -import { commonFeatures, differentFeatures } from "./Compare"; -import PhonemeInventory from "./PhonemeInventory"; +import { commonFeatures, differentFeatures } from "@/pheatures/Compare"; +import PhonemeInventory from "@/pheatures/PhonemeInventory"; import symbolList from "./SymbolList.test"; diff --git a/src/pheatures/FeatureList.test.ts b/test/pheatures/FeatureList.test.ts similarity index 99% rename from src/pheatures/FeatureList.test.ts rename to test/pheatures/FeatureList.test.ts index e28ae84..919cb7f 100644 --- a/src/pheatures/FeatureList.test.ts +++ b/test/pheatures/FeatureList.test.ts @@ -2,7 +2,8 @@ import { expect, test } from "vitest"; import { CONS, DIA, VOW } from "@/utils/phonemes"; -import FeatureList from "./FeatureList"; +import FeatureList from "@/pheatures/FeatureList"; + import inventories from "./PhonemeInventory.test.ts"; import symbolList from "./SymbolList.test"; diff --git a/src/pheatures/IPASkeleton.test.ts b/test/pheatures/IPASkeleton.test.ts similarity index 86% rename from src/pheatures/IPASkeleton.test.ts rename to test/pheatures/IPASkeleton.test.ts index 0b2df01..d1846f7 100644 --- a/src/pheatures/IPASkeleton.test.ts +++ b/test/pheatures/IPASkeleton.test.ts @@ -3,9 +3,9 @@ import { expect, test } from "vitest"; import consonantChartsPath from "@/assets/data/ipa-chart/ipachart-consonants.tsv"; import parseFile from "@/utils/dataTransformer"; -import ComplexSymbol from "./ComplexSymbol"; -import { diacriticList } from "./Diacritics"; -import IPASkeleton from "./IPASkeleton"; +import ComplexSymbol from "@/pheatures/ComplexSymbol"; +import { diacriticList } from "@/pheatures/Diacritics"; +import IPASkeleton from "@/pheatures/IPASkeleton"; import symbolList from "./SymbolList.test"; diff --git a/src/pheatures/PhonemeInventory.test.ts b/test/pheatures/PhonemeInventory.test.ts similarity index 92% rename from src/pheatures/PhonemeInventory.test.ts rename to test/pheatures/PhonemeInventory.test.ts index c5cf9fd..2508791 100644 --- a/src/pheatures/PhonemeInventory.test.ts +++ b/test/pheatures/PhonemeInventory.test.ts @@ -3,7 +3,8 @@ import { expect, test } from "vitest"; import inventoryFiles from "@/assets/data/phoneme-inventories/"; import parseFile from "@/utils/dataTransformer"; -import PhonemeInventory from "./PhonemeInventory"; +import PhonemeInventory from "@/pheatures/PhonemeInventory"; + import symbolList from "./SymbolList.test"; type InventoryName = keyof typeof inventoryFiles; diff --git a/src/pheatures/SymbolList.test.ts b/test/pheatures/SymbolList.test.ts similarity index 78% rename from src/pheatures/SymbolList.test.ts rename to test/pheatures/SymbolList.test.ts index 5bcd6ed..018e8a4 100644 --- a/src/pheatures/SymbolList.test.ts +++ b/test/pheatures/SymbolList.test.ts @@ -3,8 +3,8 @@ import { expect, test } from "vitest"; import symbolListPath from "@/assets/data/symbol-list.tsv"; import parseFile from "@/utils/dataTransformer"; -import { RawSymbol } from "./BaseSymbol"; -import BaseSymbolList from "./BaseSymbolList"; +import { RawSymbol } from "@/pheatures/BaseSymbol"; +import BaseSymbolList from "@/pheatures/BaseSymbolList"; const rawSymbols = parseFile(symbolListPath, true); const symbolList = new BaseSymbolList(rawSymbols); diff --git a/tsconfig.app.json b/tsconfig.app.json index 2ea9dc0..21c7999 100644 --- a/tsconfig.app.json +++ b/tsconfig.app.json @@ -25,5 +25,5 @@ "noFallthroughCasesInSwitch": true, "noUncheckedSideEffectImports": true }, - "include": ["src"] + "include": ["src", "test"] }