Skip to content

Commit

Permalink
Make tests pass again
Browse files Browse the repository at this point in the history
  • Loading branch information
f-elix committed Jan 9, 2025
1 parent 2bc175f commit 5a632ac
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/components/dismissable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
},
"devDependencies": {
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"jsdom": "25.0.1",
"svelte-preprocess": "6.0.3"
}
Expand Down
1 change: 1 addition & 0 deletions packages/components/dismissable/test/setup.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
import '@testing-library/jest-dom/vitest';
import '../../../../shared/test/mocks/sveltekit';
6 changes: 3 additions & 3 deletions packages/components/dismissable/vitest.config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { svelteInlineComponent } from '@288-toolkit/vite-plugin-svelte-inline-component';
import { sveltekit } from '@sveltejs/kit/vite';
import { svelteTesting } from '@testing-library/svelte/vite';
import { defineProject, mergeConfig } from 'vitest/config';
import baseConfig from '../../../vitest.shared';

export default mergeConfig(
baseConfig,
defineProject({
test: {
setupFiles: ['./test/setup.ts'],
alias: [{ find: /^svelte$/, replacement: 'svelte/internal' }]
setupFiles: ['./test/setup.ts']
},
plugins: [sveltekit(), svelteInlineComponent()]
plugins: [sveltekit(), svelteTesting(), svelteInlineComponent()]
})
);
18 changes: 18 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5a632ac

Please sign in to comment.