mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
41 lines
986 B
TypeScript
41 lines
986 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2025 Qwen Team
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import { defineConfig } from 'vitest/config';
|
|
import { dirname, resolve } from 'node:path';
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
const timeoutMinutes = Number(process.env['TB_TIMEOUT_MINUTES'] || '5');
|
|
const testTimeoutMs = timeoutMinutes * 60 * 1000;
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
testTimeout: testTimeoutMs,
|
|
globalSetup: './globalSetup.ts',
|
|
reporters: ['default'],
|
|
include: ['**/*.test.ts'],
|
|
exclude: ['**/terminal-bench/*.test.ts', '**/node_modules/**'],
|
|
retry: 2,
|
|
fileParallelism: true,
|
|
poolOptions: {
|
|
threads: {
|
|
minThreads: 2,
|
|
maxThreads: 4,
|
|
},
|
|
},
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
// Use built SDK bundle for e2e tests
|
|
'@qwen-code/sdk': resolve(
|
|
__dirname,
|
|
'../packages/sdk-typescript/dist/index.mjs',
|
|
),
|
|
},
|
|
},
|
|
});
|