console/vitest.config.ts

22 lines
671 B
TypeScript
Raw Normal View History

import { defaultExclude, defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
alias: {
'@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,
},
exclude: [...defaultExclude, 'integration-tests', 'packages/migrations/test'],
2023-04-12 09:45:58 +00:00
setupFiles: ['./scripts/serializer.ts'],
},
});