Skip to content

Commit

Permalink
Refactor test file paths and update Vite config
Browse files Browse the repository at this point in the history
  • Loading branch information
robinson-md committed Oct 23, 2024
1 parent 26f564e commit 22a3378
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/svelte/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
Expand Down

0 comments on commit 22a3378

Please sign in to comment.