Skip to content

Commit

Permalink
Move test files to separate directory
Browse files Browse the repository at this point in the history
- Update `include` property in `tsconfig.app.json` for TypeScript in IDE
  - Otherwise import alias `@/*` is not recognized: "Cannot find module"
  • Loading branch information
taesungh committed Nov 18, 2024
1 parent 163535d commit baa33c6
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<RawSymbol>(symbolListPath, true);
const symbolList = new BaseSymbolList(rawSymbols);
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true
},
"include": ["src"]
"include": ["src", "test"]
}

0 comments on commit baa33c6

Please sign in to comment.