Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed May 1, 2023
1 parent 476a23f commit 21db220
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ import path from 'path'
import { defineConfig } from 'vitest/config'

export default defineConfig({
resolve: {
alias: [
{ find: /^valtio$/, replacement: './src/index.ts' },
{ find: /^valtio(.*)$/, replacement: './src/$1.ts' },
],
},
test: {
name: 'valtio',
setupFiles: './tests/setup.ts',
Expand All @@ -11,15 +17,5 @@ export default defineConfig({
},
environment: 'jsdom',
dir: 'tests',
alias: [
{
find: /^valtio$/,
replacement: './src/index.ts'
},
{
find: /^valtio\/(.*)$/,
replacement: path.resolve(__dirname, './src/$1.ts')
},
],
},
})

0 comments on commit 21db220

Please sign in to comment.