Skip to content

Commit

Permalink
vitest absoulte path
Browse files Browse the repository at this point in the history
  • Loading branch information
okinawaa committed Sep 5, 2024
1 parent 7324180 commit b72ac24
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vitest.config.mts
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import { defineConfig } from 'vitest/config';
import packageJson from './package.json';
import path from 'path';

export default defineConfig({
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
test: {
name: packageJson.name,
dir: './src',
Expand Down

0 comments on commit b72ac24

Please sign in to comment.