forked from taikoxyz/taiko-mono
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vitest.config.ts
28 lines (27 loc) · 1.16 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
import path from 'path';
import { defineProject } from 'vitest/config';
export default defineProject({
test: {
environment: 'jsdom',
// setupFiles: ['./../../setup.ts'],
setupFiles: ['./src/tests/setup.ts'],
globals: true,
include: ['./**/*.{test,spec}.{js,ts}'],
},
resolve: {
alias: {
$components: path.resolve(__dirname, './src/components'),
$stores: path.resolve(__dirname, './src/stores'),
$config: path.resolve(__dirname, './src/app.config.ts'),
$libs: path.resolve(__dirname, './src/libs'),
$abi: path.resolve(__dirname, './src/abi/index.ts'),
$bridgeConfig: path.resolve(__dirname, './__mocks__/$bridgeConfig.ts'),
$chainConfig: path.resolve(__dirname, './src/generated/chainConfig.ts'),
$relayerConfig: path.resolve(__dirname, './src/generated/relayerConfig.ts'),
$customToken: path.resolve(__dirname, './src/generated/customTokenConfig.ts'),
$mocks: path.resolve(__dirname, './src/tests/mocks/index.ts'),
'$env/static/public': path.resolve(__dirname, './src/tests/mocks/env.static.public.ts'),
"$wagmi-config": path.resolve(__dirname, "./src/wagmi.config.ts"),
},
},
});