Skip to content

Commit

Permalink
chore: vitest globals option 활성화 (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssi02014 authored Apr 26, 2024
1 parent 72c1bdd commit 505f432
Show file tree
Hide file tree
Showing 13 changed files with 2 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/_internal/hangul.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { describe, it, expect, assert } from 'vitest';
import { binaryAssembleHangulCharacters, binaryAssembleHangul, isHangulAlphabet, isHangulCharacter } from './hangul';

describe('isHangul*', () => {
Expand Down
1 change: 0 additions & 1 deletion src/assemble.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { describe, expect, it } from 'vitest';
import { assembleHangul } from './assemble';

describe('assembleHangul', () => {
Expand Down
1 change: 0 additions & 1 deletion src/chosungIncludes.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { describe, expect, it } from 'vitest';
import { chosungIncludes } from './chosungIncludes';

describe('chosungIncludes', () => {
Expand Down
1 change: 0 additions & 1 deletion src/combineHangulCharacter.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { describe, it, expect, assert } from 'vitest';
import { combineHangulCharacter, combineVowels } from './combineHangulCharacter';

describe('combineHangulCharacter', () => {
Expand Down
1 change: 0 additions & 1 deletion src/convertQwertyToHangulAlphabet.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { describe, expect, it } from 'vitest';
import { convertQwertyToHangul, convertQwertyToHangulAlphabet } from './convertQwertyToHangulAlphabet';

describe('convertQwertyToHangulAlphabet', () => {
Expand Down
1 change: 0 additions & 1 deletion src/disassemble.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { describe, expect, it } from 'vitest';
import { disassembleHangul, disassembleHangulToGroups } from './disassemble';

describe('disassembleHangulToGroups', () => {
Expand Down
1 change: 0 additions & 1 deletion src/disassembleCompleteHangulCharacter.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { describe, expect, it } from 'vitest';
import { disassembleCompleteHangulCharacter } from './disassembleCompleteHangulCharacter';

describe('disassembleCompleteHangulCharacter', () => {
Expand Down
1 change: 0 additions & 1 deletion src/hangulIncludes.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { hangulIncludes } from './hangulIncludes';
import { describe, it, expect } from 'vitest';

describe('hangulIncludes', () => {
it('사과', () => {
Expand Down
1 change: 0 additions & 1 deletion src/josa.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { describe, expect, it } from 'vitest';
import { josa } from './josa';

describe('Hangul', () => {
Expand Down
1 change: 0 additions & 1 deletion src/removeLastHangulCharacter.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { describe, it, expect } from 'vitest';
import { removeLastHangulCharacter } from './removeLastHangulCharacter';

describe('removeLastHangulCharacter', () => {
Expand Down
1 change: 0 additions & 1 deletion src/utils.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { describe, expect, expectTypeOf, it } from 'vitest';
import {
canBeChosung,
canBeJongsung,
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"types": ["vitest/globals"],
"target": "es2016",
"module": "commonjs",
"esModuleInterop": true,
Expand Down
1 change: 1 addition & 0 deletions vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export default defineConfig({
test: {
name: packageJson.name,
dir: './src',
globals: true,
coverage: {
provider: 'istanbul',
include: ['src/**/*'],
Expand Down

0 comments on commit 505f432

Please sign in to comment.