forked from graphql-hive/graphql-inspector
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvite.config.ts
More file actions
21 lines (20 loc) · 837 Bytes
/
vite.config.ts
File metadata and controls
21 lines (20 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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',
'@graphql-inspector/github': 'packages/github/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'],
},
});