-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
22 lines (21 loc) · 1.1 KB
/
Copy pathvitest.config.ts
File metadata and controls
22 lines (21 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import {defineConfig} from 'vitest/config';
import path from 'path';
export default defineConfig({
test: {
include: ['__tests__/**/*.test.ts'],
},
resolve: {
alias: {
'react-native-nitro-markdown/src': path.resolve(__dirname, '__tests__/mocks/react-native-nitro-markdown.ts'),
'react-native-nitro-markdown': path.resolve(__dirname, '__tests__/mocks/react-native-nitro-markdown.ts'),
'react-native': path.resolve(__dirname, '__tests__/mocks/react-native.ts'),
'expo-file-system/next': path.resolve(__dirname, '__tests__/mocks/expo-file-system-next.ts'),
'react-native-mmkv': path.resolve(__dirname, '__tests__/mocks/react-native-mmkv.ts'),
'expo-localization': path.resolve(__dirname, '__tests__/mocks/expo-localization.ts'),
'folder-picker': path.resolve(__dirname, '__tests__/mocks/folder-picker.ts'),
'file-picker': path.resolve(__dirname, '__tests__/mocks/file-picker.ts'),
'expo-document-picker': path.resolve(__dirname, '__tests__/mocks/expo-document-picker.ts'),
'expo-font': path.resolve(__dirname, '__tests__/mocks/expo-font.ts'),
},
},
});