2023-02-10 10:11:23 +00:00
|
|
|
import { defaultExclude, defineConfig } from 'vitest/config';
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
test: {
|
|
|
|
|
globals: true,
|
|
|
|
|
alias: {
|
2023-12-05 09:06:15 +00:00
|
|
|
'@hive/usage-common': new URL(
|
|
|
|
|
'./packages/services/usage-common/src/index.ts',
|
|
|
|
|
import.meta.url,
|
|
|
|
|
).pathname,
|
|
|
|
|
'@hive/service-common': new URL(
|
|
|
|
|
'./packages/services/service-common/src/index.ts',
|
|
|
|
|
import.meta.url,
|
|
|
|
|
).pathname,
|
|
|
|
|
'@graphql-hive/core': new URL('./packages/libraries/core/src/index.ts', import.meta.url)
|
|
|
|
|
.pathname,
|
2023-02-10 10:11:23 +00:00
|
|
|
},
|
2023-02-28 07:52:37 +00:00
|
|
|
exclude: [...defaultExclude, 'integration-tests', 'packages/migrations/test'],
|
2023-04-12 09:45:58 +00:00
|
|
|
setupFiles: ['./scripts/serializer.ts'],
|
2023-02-10 10:11:23 +00:00
|
|
|
},
|
|
|
|
|
});
|