Skip to content

Commit

Permalink
fix: update and cleanup vitest config and testing-library libs
Browse files Browse the repository at this point in the history
  • Loading branch information
ndom91 committed Jan 8, 2025
1 parent 706e4e1 commit 5e69416
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 20 deletions.
2 changes: 1 addition & 1 deletion apps/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@tauri-apps/plugin-shell": "^2.0.1",
"@tauri-apps/plugin-store": "^2.1.0",
"@tauri-apps/plugin-updater": "^2.0.0",
"@testing-library/jest-dom": "^6.4.8",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/svelte": "5.2.5",
"@types/diff-match-patch": "^1.0.36",
"@types/git-url-parse": "^9.0.3",
Expand Down
3 changes: 2 additions & 1 deletion apps/desktop/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"@wdio/globals/types",
"@wdio/mocha-framework",
"vitest/importMeta",
"@vitest/browser/matchers"
"@vitest/browser/matchers",
"vitest/jsdom"
]
},
"include": [
Expand Down
10 changes: 2 additions & 8 deletions apps/desktop/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,9 @@ export default defineConfig({
sourcemap: true
},
test: {
deps: {
inline: ['sorcery']
},
includeSource: ['src/**/*.{js,ts}'],
includeSource: ['src/**/*.test.{js,ts}'],
exclude: ['node_modules/**/*', 'e2e/**/*'],
environment: 'jsdom',
setupFiles: ['./vitest-setup.js'],
alias: {
'@testing-library/svelte': '@testing-library/svelte/svelte5'
}
setupFiles: ['./vitest-setup.js']
}
});
19 changes: 9 additions & 10 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 5e69416

Please sign in to comment.