Skip to content

Commit

Permalink
🎉 set vitest ts alias
Browse files Browse the repository at this point in the history
  • Loading branch information
oaoong committed Feb 29, 2024
1 parent ca5bf8b commit e81ae78
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vitest.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import { defineConfig } from 'vitest/config'
import path from 'path'

export default defineConfig({
test: {
include: ['**/*.test.ts', '**/*.test.tsx'],
environment: 'jsdom',
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
})

0 comments on commit e81ae78

Please sign in to comment.