forked from DimensionDev/Maskbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
25 lines (23 loc) · 1.28 KB
/
vite.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
import { defineConfig } from 'vitest/config'
function createURL(pathToFile: string) {
return new URL(pathToFile, import.meta.url).toString()
}
export default defineConfig({
test: {
include: ['./packages/**/tests/**/*.ts'],
alias: {
'@masknet/base': createURL('./packages/base/src/index.ts'),
'@masknet/shared-base': createURL('./packages/shared-base/src/index.ts'),
'@masknet/web3-helpers': createURL('./packages/web3-helpers/src/index.ts'),
'@masknet/web3-providers': createURL('./packages/web3-providers/src/index.ts'),
'@masknet/web3-shared-base': createURL('./packages/web3-shared/base/src/index.ts'),
'@masknet/web3-shared-evm': createURL('./packages/web3-shared/evm/src/index.ts'),
'@masknet/web3-shared-solana': createURL('./packages/web3-shared/solana/src/index.ts'),
'@masknet/web3-shared-flow': createURL('./packages/web3-shared/flow/src/index.ts'),
'@masknet/public-api': createURL('./packages/public-api/src/index.ts'),
'@masknet/typed-message': createURL('./packages/typed-message/base/src/index.ts'),
'@masknet/encryption': createURL('./packages/encryption/src/index.ts'),
},
setupFiles: ['./setups/index.ts'],
},
})