mirror of
https://github.com/graphql-hive/console
synced 2026-04-21 22:47:17 +00:00
25 lines
695 B
TypeScript
25 lines
695 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
|
|
const setupFiles = ['../scripts/serializer.ts', './expect.ts'];
|
|
|
|
if (!process.env.RUN_AGAINST_LOCAL_SERVICES) {
|
|
setupFiles.unshift('dotenv/config');
|
|
} else {
|
|
setupFiles.unshift('./local-dev.ts');
|
|
}
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
alias: {
|
|
'testkit/gql/graphql': new URL('./testkit/gql/graphql.ts', import.meta.url).pathname,
|
|
'testkit/gql': new URL('./testkit/gql/index.ts', import.meta.url).pathname,
|
|
'@hive/service-common': new URL(
|
|
'../packages/services/service-common/src/index.ts',
|
|
import.meta.url,
|
|
).pathname,
|
|
},
|
|
setupFiles,
|
|
testTimeout: 90_000,
|
|
},
|
|
});
|