From 505f432a2d3c94b3bab910fd99b23a02fecbc1f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gromit=20=28=EC=A0=84=EB=AF=BC=EC=9E=AC=29?= <64779472+ssi02014@users.noreply.github.com> Date: Fri, 26 Apr 2024 09:53:17 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20vitest=20globals=20option=20=ED=99=9C?= =?UTF-8?q?=EC=84=B1=ED=99=94=20(#78)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/_internal/hangul.spec.ts | 1 - src/assemble.spec.ts | 1 - src/chosungIncludes.spec.ts | 1 - src/combineHangulCharacter.spec.ts | 1 - src/convertQwertyToHangulAlphabet.spec.ts | 1 - src/disassemble.spec.ts | 1 - src/disassembleCompleteHangulCharacter.spec.ts | 1 - src/hangulIncludes.spec.ts | 1 - src/josa.spec.ts | 1 - src/removeLastHangulCharacter.spec.ts | 1 - src/utils.spec.ts | 1 - tsconfig.json | 1 + vitest.config.mts | 1 + 13 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/_internal/hangul.spec.ts b/src/_internal/hangul.spec.ts index 00300b89..474bf15d 100644 --- a/src/_internal/hangul.spec.ts +++ b/src/_internal/hangul.spec.ts @@ -1,4 +1,3 @@ -import { describe, it, expect, assert } from 'vitest'; import { binaryAssembleHangulCharacters, binaryAssembleHangul, isHangulAlphabet, isHangulCharacter } from './hangul'; describe('isHangul*', () => { diff --git a/src/assemble.spec.ts b/src/assemble.spec.ts index d871685c..831a698b 100644 --- a/src/assemble.spec.ts +++ b/src/assemble.spec.ts @@ -1,4 +1,3 @@ -import { describe, expect, it } from 'vitest'; import { assembleHangul } from './assemble'; describe('assembleHangul', () => { diff --git a/src/chosungIncludes.spec.ts b/src/chosungIncludes.spec.ts index 0b8950ce..4d1eee92 100644 --- a/src/chosungIncludes.spec.ts +++ b/src/chosungIncludes.spec.ts @@ -1,4 +1,3 @@ -import { describe, expect, it } from 'vitest'; import { chosungIncludes } from './chosungIncludes'; describe('chosungIncludes', () => { diff --git a/src/combineHangulCharacter.spec.ts b/src/combineHangulCharacter.spec.ts index e6b05cfc..46a666f1 100644 --- a/src/combineHangulCharacter.spec.ts +++ b/src/combineHangulCharacter.spec.ts @@ -1,4 +1,3 @@ -import { describe, it, expect, assert } from 'vitest'; import { combineHangulCharacter, combineVowels } from './combineHangulCharacter'; describe('combineHangulCharacter', () => { diff --git a/src/convertQwertyToHangulAlphabet.spec.ts b/src/convertQwertyToHangulAlphabet.spec.ts index 91fd6e7b..0130e75f 100644 --- a/src/convertQwertyToHangulAlphabet.spec.ts +++ b/src/convertQwertyToHangulAlphabet.spec.ts @@ -1,4 +1,3 @@ -import { describe, expect, it } from 'vitest'; import { convertQwertyToHangul, convertQwertyToHangulAlphabet } from './convertQwertyToHangulAlphabet'; describe('convertQwertyToHangulAlphabet', () => { diff --git a/src/disassemble.spec.ts b/src/disassemble.spec.ts index 19e54d65..d4d59c60 100644 --- a/src/disassemble.spec.ts +++ b/src/disassemble.spec.ts @@ -1,4 +1,3 @@ -import { describe, expect, it } from 'vitest'; import { disassembleHangul, disassembleHangulToGroups } from './disassemble'; describe('disassembleHangulToGroups', () => { diff --git a/src/disassembleCompleteHangulCharacter.spec.ts b/src/disassembleCompleteHangulCharacter.spec.ts index b0543b85..6dea94b6 100644 --- a/src/disassembleCompleteHangulCharacter.spec.ts +++ b/src/disassembleCompleteHangulCharacter.spec.ts @@ -1,4 +1,3 @@ -import { describe, expect, it } from 'vitest'; import { disassembleCompleteHangulCharacter } from './disassembleCompleteHangulCharacter'; describe('disassembleCompleteHangulCharacter', () => { diff --git a/src/hangulIncludes.spec.ts b/src/hangulIncludes.spec.ts index 5ae043c8..9d5a08fb 100644 --- a/src/hangulIncludes.spec.ts +++ b/src/hangulIncludes.spec.ts @@ -1,5 +1,4 @@ import { hangulIncludes } from './hangulIncludes'; -import { describe, it, expect } from 'vitest'; describe('hangulIncludes', () => { it('사과', () => { diff --git a/src/josa.spec.ts b/src/josa.spec.ts index 5ece6682..7b3cdad4 100644 --- a/src/josa.spec.ts +++ b/src/josa.spec.ts @@ -1,4 +1,3 @@ -import { describe, expect, it } from 'vitest'; import { josa } from './josa'; describe('Hangul', () => { diff --git a/src/removeLastHangulCharacter.spec.ts b/src/removeLastHangulCharacter.spec.ts index a6ce9f62..0b13b5d4 100644 --- a/src/removeLastHangulCharacter.spec.ts +++ b/src/removeLastHangulCharacter.spec.ts @@ -1,4 +1,3 @@ -import { describe, it, expect } from 'vitest'; import { removeLastHangulCharacter } from './removeLastHangulCharacter'; describe('removeLastHangulCharacter', () => { diff --git a/src/utils.spec.ts b/src/utils.spec.ts index 04d281f2..b94e565d 100644 --- a/src/utils.spec.ts +++ b/src/utils.spec.ts @@ -1,4 +1,3 @@ -import { describe, expect, expectTypeOf, it } from 'vitest'; import { canBeChosung, canBeJongsung, diff --git a/tsconfig.json b/tsconfig.json index c5e5d20a..8514bf82 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { + "types": ["vitest/globals"], "target": "es2016", "module": "commonjs", "esModuleInterop": true, diff --git a/vitest.config.mts b/vitest.config.mts index 83a73d1b..1cb8bfc5 100644 --- a/vitest.config.mts +++ b/vitest.config.mts @@ -5,6 +5,7 @@ export default defineConfig({ test: { name: packageJson.name, dir: './src', + globals: true, coverage: { provider: 'istanbul', include: ['src/**/*'],