-
-
Notifications
You must be signed in to change notification settings - Fork 185
/
vite.config.ts
20 lines (19 loc) · 770 Bytes
/
vite.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
alias: {
'@graphql-inspector/commands': 'packages/commands/commands/src/index.ts',
'@graphql-inspector/loaders': 'packages/loaders/loaders/src/index.ts',
'@graphql-inspector/logger': 'packages/logger/src/index.ts',
'@graphql-inspector/url-loader': 'packages/loaders/url/src/index.ts',
'@graphql-inspector/testing': 'packages/testing/src/index.ts',
'@graphql-inspector/core': 'packages/core/src/index.ts',
},
deps: {
// fixes `graphql` Duplicate "graphql" modules cannot be used at the same time since different
fallbackCJS: true,
},
setupFiles: ['./packages/testing/src/setup-file.ts'],
},
});