SPB Git

Repository Public

vitest.config.ts 687 B 18 lines typescript

1import path from 'node:path';2import { fileURLToPath } from 'node:url';3import { defineConfig } from 'vitest/config';45const pkg = (name: string): string => path.join(path.dirname(fileURLToPath(import.meta.url)), '..', '..', 'packages', name, 'src', 'index.ts');67export default defineConfig({8  // The workspace packages are resolved to their SOURCES: the suite needs no prior build of them and9  // always tests the adapters against the current kernel / providers code.10  resolve: { alias: { '@aos/kernel': pkg('kernel'), '@aos/providers': pkg('providers') } },11  test: {12    include: ['src/**/*.test.ts'],13    testTimeout: 30_000,14    hookTimeout: 60_000,15    pool: 'forks',16  },17});18
Files main
Menu

Theme