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