diff --git a/packages/sdk/svelte/src/lib/client/__tests__/SvelteLDClient.test.ts b/packages/sdk/svelte/__tests__/lib/client/SvelteLDClient.test.ts similarity index 99% rename from packages/sdk/svelte/src/lib/client/__tests__/SvelteLDClient.test.ts rename to packages/sdk/svelte/__tests__/lib/client/SvelteLDClient.test.ts index 7624bb5fe..ac821617a 100644 --- a/packages/sdk/svelte/src/lib/client/__tests__/SvelteLDClient.test.ts +++ b/packages/sdk/svelte/__tests__/lib/client/SvelteLDClient.test.ts @@ -2,7 +2,7 @@ import * as LDClient from 'launchdarkly-js-client-sdk'; import { get } from 'svelte/store'; import { afterAll, afterEach, beforeEach, describe, expect, it, type Mock, vi } from 'vitest'; -import { LD } from '../SvelteLDClient.js'; +import { LD } from '../../../src/lib/client/SvelteLDClient'; vi.mock('launchdarkly-js-client-sdk', async (importActual) => { const actual = (await importActual()) as typeof LDClient; diff --git a/packages/sdk/svelte/vite.config.ts b/packages/sdk/svelte/vite.config.ts index 0bc6e5ea6..eef9c1da2 100644 --- a/packages/sdk/svelte/vite.config.ts +++ b/packages/sdk/svelte/vite.config.ts @@ -10,7 +10,7 @@ export default defineConfig({ }, }, test: { - include: ['src/**/*.{test,spec}.{js,ts,svelte}'], + include: ['__tests__/**/*.{test,spec}.{js,ts,svelte}'], globals: true, environment: 'jsdom', },