前端(Vite + React)、API/worker(Fastify + BullMQ)、api-contracts 契约包、 迁移脚本、测试与自托管 docker-compose 示例。 开源准备:运维脚本与机器信息已拆到私有仓库;公司名、备案号、隐私邮箱改读 publicCompliance.local.json(仓库只保留占位模板);站点地址与客服二维码改为 VITE_ 环境变量;fixtures 中的真实用户标识已匿名化;三个 package.json 标注 Apache-2.0。 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
20 lines
519 B
TypeScript
20 lines
519 B
TypeScript
import { defineConfig, devices } from '@playwright/test';
|
|
|
|
export default defineConfig({
|
|
testDir: './tests/fullstack',
|
|
timeout: 100_000,
|
|
expect: { timeout: 10_000 },
|
|
workers: 1,
|
|
use: {
|
|
baseURL: 'http://127.0.0.1:8080',
|
|
channel: 'chrome',
|
|
launchOptions: {
|
|
args: [
|
|
'--host-resolver-rules=MAP com.localhost 127.0.0.1,MAP cn.localhost 127.0.0.1',
|
|
],
|
|
},
|
|
trace: 'retain-on-failure',
|
|
},
|
|
projects: [{ name: 'fullstack-chrome', use: { ...devices['Desktop Chrome'] } }],
|
|
});
|