2024-04-07 08:57:03 +00:00
|
|
|
import tsconfigPaths from 'vite-tsconfig-paths';
|
2023-02-10 10:11:23 +00:00
|
|
|
import { defaultExclude, defineConfig } from 'vitest/config';
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
2024-04-07 08:57:03 +00:00
|
|
|
plugins: [tsconfigPaths()],
|
2023-02-10 10:11:23 +00:00
|
|
|
test: {
|
|
|
|
|
alias: {
|
2023-12-05 09:06:15 +00:00
|
|
|
'@graphql-hive/core': new URL('./packages/libraries/core/src/index.ts', import.meta.url)
|
|
|
|
|
.pathname,
|
2023-02-10 10:11:23 +00:00
|
|
|
},
|
2024-04-07 08:57:03 +00:00
|
|
|
globals: true,
|
2024-07-09 15:14:53 +00:00
|
|
|
exclude: [
|
|
|
|
|
...defaultExclude,
|
|
|
|
|
'integration-tests',
|
|
|
|
|
'packages/migrations/test',
|
|
|
|
|
'docker/.hive-dev',
|
|
|
|
|
],
|
2023-04-12 09:45:58 +00:00
|
|
|
setupFiles: ['./scripts/serializer.ts'],
|
2023-02-10 10:11:23 +00:00
|
|
|
},
|
|
|
|
|
});
|