diff --git a/src/shared/ui/VirtualList/VirtualList.svelte b/src/shared/ui/VirtualList/VirtualList.svelte
index f6471f7..cbc0ea1 100644
--- a/src/shared/ui/VirtualList/VirtualList.svelte
+++ b/src/shared/ui/VirtualList/VirtualList.svelte
@@ -10,10 +10,7 @@
+
+
+
{#each virtualizer.items as item (item.key)}
{@render children({ item: items[item.index], index: item.index })}
diff --git a/src/shared/ui/index.ts b/src/shared/ui/index.ts
index 69bdf9c..307dcc6 100644
--- a/src/shared/ui/index.ts
+++ b/src/shared/ui/index.ts
@@ -6,12 +6,14 @@
import CheckboxFilter from './CheckboxFilter/CheckboxFilter.svelte';
import ComboControl from './ComboControl/ComboControl.svelte';
+import ContentEditable from './ContentEditable/ContentEditable.svelte';
import SearchBar from './SearchBar/SearchBar.svelte';
import VirtualList from './VirtualList/VirtualList.svelte';
export {
CheckboxFilter,
ComboControl,
+ ContentEditable,
SearchBar,
VirtualList,
};
diff --git a/tsconfig.json b/tsconfig.json
index 1c223e3..c215265 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -10,6 +10,7 @@
/* Strictness & Safety */
"strict": true,
"allowJs": true,
+ "noEmit": true,
"checkJs": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
diff --git a/vitest.config.browser.ts b/vitest.config.browser.ts
deleted file mode 100644
index 39777e7..0000000
--- a/vitest.config.browser.ts
+++ /dev/null
@@ -1,46 +0,0 @@
-import { svelte } from '@sveltejs/vite-plugin-svelte';
-import { playwright } from '@vitest/browser-playwright';
-import path from 'node:path';
-import { defineConfig } from 'vitest/config';
-
-export default defineConfig({
- plugins: [svelte()],
-
- test: {
- name: 'component-browser',
- include: ['src/**/*.svelte.test.ts', 'src/**/*.svelte.test.js'],
- exclude: [
- 'node_modules',
- 'dist',
- 'e2e',
- '.storybook',
- 'src/shared/shadcn/**/*',
- ],
- testTimeout: 10000,
- hookTimeout: 10000,
- restoreMocks: true,
- setupFiles: ['./vitest.setup.component.ts'],
- globals: false,
- // Use browser environment with Playwright (Vitest 4 format)
- browser: {
- enabled: true,
- headless: true,
- provider: playwright(),
- instances: [{ browser: 'chromium' }],
- screenshotFailures: true,
- screenshotDirectory: '.playwright/screenshots',
- },
- },
-
- resolve: {
- alias: {
- $lib: path.resolve(__dirname, './src/lib'),
- $app: path.resolve(__dirname, './src/app'),
- $shared: path.resolve(__dirname, './src/shared'),
- $entities: path.resolve(__dirname, './src/entities'),
- $features: path.resolve(__dirname, './src/features'),
- $routes: path.resolve(__dirname, './src/routes'),
- $widgets: path.resolve(__dirname, './src/widgets'),
- },
- },
-});
diff --git a/vitest.config.component.ts b/vitest.config.component.ts
deleted file mode 100644
index 6f26d3e..0000000
--- a/vitest.config.component.ts
+++ /dev/null
@@ -1,46 +0,0 @@
-import { svelte } from '@sveltejs/vite-plugin-svelte';
-import { playwright } from '@vitest/browser-playwright';
-import path from 'node:path';
-import { defineConfig } from 'vitest/config';
-
-export default defineConfig({
- plugins: [svelte()],
-
- test: {
- name: 'component-browser',
- include: ['src/**/*.svelte.test.ts', 'src/**/*.svelte.test.js'],
- exclude: [
- 'node_modules',
- 'dist',
- 'e2e',
- '.storybook',
- 'src/shared/shadcn/**/*',
- ],
- testTimeout: 10000,
- hookTimeout: 10000,
- restoreMocks: true,
- setupFiles: ['./vitest.setup.component.ts'],
- globals: false,
- // Use browser environment with Playwright for Svelte 5 support
- browser: {
- enabled: true,
- headless: true,
- provider: playwright(),
- instances: [{ browser: 'chromium' }],
- screenshotFailures: true,
- screenshotDirectory: '.playwright/screenshots',
- },
- },
-
- resolve: {
- alias: {
- $lib: path.resolve(__dirname, './src/lib'),
- $app: path.resolve(__dirname, './src/app'),
- $shared: path.resolve(__dirname, './src/shared'),
- $entities: path.resolve(__dirname, './src/entities'),
- $features: path.resolve(__dirname, './src/features'),
- $routes: path.resolve(__dirname, './src/routes'),
- $widgets: path.resolve(__dirname, './src/widgets'),
- },
- },
-});
diff --git a/vitest.config.ts b/vitest.config.ts
index 96e7de8..d65fb1a 100644
--- a/vitest.config.ts
+++ b/vitest.config.ts
@@ -53,6 +53,7 @@ export default defineConfig({
},
resolve: {
+ conditions: process.env.VITEST ? ['browser'] : undefined,
alias: {
$lib: path.resolve(__dirname, './src/lib'),
$app: path.resolve(__dirname, './src/app'),