You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
haoliang-net/src/CncCollector/scripts/playwright.config.ts

18 lines
450 B
TypeScript

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

import { defineConfig } from '@playwright/test';
/**
* Playwright 配置 - CncCollector 采集服务端到端测试
*
* 仅测试 HTTP API + 数据库验证,不需要浏览器
*/
export default defineConfig({
testDir: '.',
testMatch: 'e2e-collector.spec.ts',
timeout: 120000,
retries: 0,
reporter: [['list'], ['html', { open: 'never' }]],
use: {
// 不在全局设置extraHTTPHeaders每个测试自行控制认证
},
});