Skip to content

Commit

Permalink
fix(react-vite,vue-vite): add vitest type reference (#1832)
Browse files Browse the repository at this point in the history
This change solves the TS error con the Vite config object following the Vitest documentation.
  • Loading branch information
diegoazh authored Jun 6, 2024
1 parent 4bf4fe2 commit 8e08ccb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions react-vite/base/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="vitest" />

import legacy from '@vitejs/plugin-legacy'
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
Expand Down
2 changes: 2 additions & 0 deletions vue-vite/base/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="vitest" />

import legacy from '@vitejs/plugin-legacy'
import vue from '@vitejs/plugin-vue'
import path from 'path'
Expand Down

0 comments on commit 8e08ccb

Please sign in to comment.