Skip to content

Commit

Permalink
fix: vitest alias not found
Browse files Browse the repository at this point in the history
  • Loading branch information
jeferson-sb committed Sep 24, 2023
1 parent f280986 commit cb3c54a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@

import { defineConfig } from 'vitest/config'
import react from '@vitejs/plugin-react'
import path from 'path'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
test: {
environment: 'happy-dom',
setupFiles: './src/__tests__/setup.ts',
alias: {
'@': path.resolve(__dirname, './src'),
},
},
})

1 comment on commit cb3c54a

@vercel
Copy link

@vercel vercel bot commented on cb3c54a Sep 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

whatconf – ./

whatconf.vercel.app
whatconf-git-main-jeferson-sb.vercel.app
whatconf-jeferson-sb.vercel.app

Please sign in to comment.