From e19ed828f505155d222617cf9ce934d718d22ef3 Mon Sep 17 00:00:00 2001 From: Izan Gil <66965250+SrIzan10@users.noreply.github.com> Date: Sun, 1 Dec 2024 17:05:03 +0100 Subject: [PATCH] chore: move tests inside src dir --- {tests => src/tests}/get.test.ts | 2 +- {tests => src/tests}/getInterps.test.ts | 2 +- {tests => src/tests}/localizationFor.test.ts | 2 +- vitest.config.mts => vitest.config.mjs | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename {tests => src/tests}/get.test.ts (89%) rename {tests => src/tests}/getInterps.test.ts (92%) rename {tests => src/tests}/localizationFor.test.ts (90%) rename vitest.config.mts => vitest.config.mjs (100%) diff --git a/tests/get.test.ts b/src/tests/get.test.ts similarity index 89% rename from tests/get.test.ts rename to src/tests/get.test.ts index eab966d..52755be 100644 --- a/tests/get.test.ts +++ b/src/tests/get.test.ts @@ -1,5 +1,5 @@ import { it, expect } from 'vitest'; -import { locales } from '../src/test'; +import { locales } from '../test'; it('should give multiple keys correctly for both langs', () => { expect(locales.t('hello', {}, 'en')).toBe('Hello'); diff --git a/tests/getInterps.test.ts b/src/tests/getInterps.test.ts similarity index 92% rename from tests/getInterps.test.ts rename to src/tests/getInterps.test.ts index ead7615..d3380c4 100644 --- a/tests/getInterps.test.ts +++ b/src/tests/getInterps.test.ts @@ -1,5 +1,5 @@ import { it, expect } from 'vitest'; -import { locales } from '../src/test'; +import { locales } from '../test'; it('should return values with interpolations replaced', () => { expect(locales.t('interp.hello', { int: 'noway' }, 'en')).toBe('Hello noway'); diff --git a/tests/localizationFor.test.ts b/src/tests/localizationFor.test.ts similarity index 90% rename from tests/localizationFor.test.ts rename to src/tests/localizationFor.test.ts index 1913f65..fb77c94 100644 --- a/tests/localizationFor.test.ts +++ b/src/tests/localizationFor.test.ts @@ -1,5 +1,5 @@ import { it, expect } from 'vitest'; -import { locales } from '../src/test.js'; +import { locales } from '../test'; it('should give multiple keys correctly for both langs', () => { expect(locales.localizationFor('hello')).toEqual({ diff --git a/vitest.config.mts b/vitest.config.mjs similarity index 100% rename from vitest.config.mts rename to vitest.config.mjs