-
-
Notifications
You must be signed in to change notification settings - Fork 194
/
Copy pathvite.config.ts
29 lines (28 loc) · 1.03 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
26
27
28
29
import { join } from 'path';
import tsconfigPaths from 'vite-tsconfig-paths';
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/language/parser.js': 'graphql/language/parser.js',
graphql: 'graphql/index.js',
},
deps: {
// fixes `graphql` Duplicate "graphql" modules cannot be used at the same time since different
fallbackCJS: true,
},
setupFiles: ['./packages/testing/src/setup-file.ts'],
},
plugins: [
tsconfigPaths({
projects: [join(__dirname, 'tsconfig.test.json')],
}),
],
});