forked from dfinity/oisy-wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvitest.config.ts
47 lines (46 loc) · 1019 Bytes
/
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
41
42
43
44
45
46
47
import { sveltekit } from '@sveltejs/kit/vite';
import { resolve } from 'path';
import type { UserConfig } from 'vite';
import { defineConfig } from 'vitest/config';
export default defineConfig(
(): UserConfig => ({
plugins: [sveltekit()],
resolve: {
alias: [
{
find: '$lib',
replacement: resolve(__dirname, 'src/frontend/src/lib')
},
{
find: '$routes',
replacement: resolve(__dirname, 'src/frontend/src/routes')
},
{
find: '$eth',
replacement: resolve(__dirname, 'src/frontend/src/eth')
},
{
find: '$icp',
replacement: resolve(__dirname, 'src/frontend/src/icp')
},
{
find: '$icp-eth',
replacement: resolve(__dirname, 'src/frontend/src/icp-eth')
},
{
find: '$tests',
replacement: resolve(__dirname, 'src/frontend/src/tests')
},
{
find: '$env',
replacement: resolve(__dirname, 'src/frontend/src/env')
}
]
},
test: {
globals: true,
watch: false,
silent: true
}
})
);