-
-
Notifications
You must be signed in to change notification settings - Fork 237
/
vitest.config.ts
40 lines (38 loc) · 1.09 KB
/
vitest.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { defineConfig } from 'vitest/config'
import tsconfigPaths from 'vite-tsconfig-paths'
const resolve = (val: string) => new URL(val, import.meta.url).pathname
export default defineConfig({
root: process.cwd(),
plugins: [tsconfigPaths()],
test: {
globals: true,
setupFiles: ['tests-setup.ts'],
hideSkippedTests: true,
environment: 'happy-dom',
// https://vitest.dev/config/#exclude defaults + sandbox/codegen/frameworks
exclude: [
'**/node_modules/**',
'**/dist/**',
'**/cypress/**',
'**/.{idea,git,cache,output,temp}/**',
'**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*',
'sandbox/codegen/__tests__/frameworks',
],
},
resolve: {
alias: [
{
find: '@pandacss/config/ts-path',
replacement: resolve('./packages/config/src/resolve-ts-path-pattern.ts'),
},
{
find: '@pandacss/dev',
replacement: resolve('./packages/cli/src'),
},
{
find: /^@pandacss\/(.*)$/,
replacement: resolve('./packages/$1/src'),
},
],
},
})