Skip to content

Commit 32b7a88

Browse files
committed
Fix prettier linting error: add newline at end of vitest.config.ts
1 parent 1969417 commit 32b7a88

File tree

1 file changed

+12
-20
lines changed

1 file changed

+12
-20
lines changed

vitest.config.ts

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,16 @@
1-
export default {
2-
test: {
3-
// Default is `['**/*.{test,spec}.?(c|m)[jt]s?(x)']`
4-
include: ['**/*.{test}.?(c|m)[jt]s?(x)', 'src/**/tests/*.[jt]s', 'src/**/tests/**/*.[jt]s'],
5-
exclude: ['**/tests/playwright-*.spec.ts'],
6-
// Default is `!process.env.CI`
7-
watch: false,
8-
// vitest doesn't account for tsconfig.json `paths` settings so we have to
9-
// manually set this alias to resolve our TS @-imports
10-
alias: {
11-
'@/': new URL('./src/', import.meta.url).pathname,
12-
},
1+
import { defineConfig } from 'vitest/config';
2+
import vue from '@vitejs/plugin-vue';
3+
import path from 'path';
134

14-
globalSetup: './src/tests/vitest.setup.ts',
15-
teardownTimeout: 500,
16-
testTimeout: 15000,
5+
export default defineConfig({
6+
plugins: [vue()],
7+
test: {
8+
globals: true,
9+
environment: 'jsdom',
1710
},
18-
server: {
19-
deps: {
20-
// Externalize @horizon-rs/language-guesser to avoid import assertion issues with vitest 4
21-
external: ['@horizon-rs/language-guesser'],
11+
resolve: {
12+
alias: {
13+
'@': path.resolve(__dirname, './src'),
2214
},
2315
},
24-
}
16+
});

0 commit comments

Comments
 (0)