-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
vitest.config.ts
27 lines (26 loc) · 1.08 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
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, './__mocks__/$customToken.ts'),
$mocks: path.resolve(__dirname, './src/tests/mocks/index.ts'),
'$env/static/public': path.resolve(__dirname, './__mocks__/$env/static/public.ts'),
},
},
});