chore(tooling): 对齐协作规范与浏览器验收工具

验证:713 项单测、8 视口环境、代码及格式检查通过;未运行生产构建。
This commit is contained in:
zhanjunhao
2026-11-17 14:48:50 +08:00
parent e7a7541b2b
commit 92380ebab6
30 changed files with 2089 additions and 160 deletions
+7 -1
View File
@@ -122,10 +122,15 @@ test('checked-in defaults preserve same-origin behavior and disable analytics',
});
test('development server transforms the HTML and runtime configuration modules', async () => {
// Inline `watch: null` is dropped when merged with the config file, so pass the
// loaded config directly; otherwise chokidar keeps the test process alive.
const userConfig = await config(root, 'development');
const server = await createServer({
...userConfig,
configFile: false,
root,
cacheDir: path.join(root, '.cache/vite-environment-test'),
server: { middlewareMode: true },
server: { ...userConfig.server, middlewareMode: true, watch: null },
optimizeDeps: { noDiscovery: true, include: [] },
});
try {
@@ -166,6 +171,7 @@ test('Vite proxies API requests on Node 22 without DEP0060', async () => {
server: {
host: '127.0.0.1',
port: 0,
watch: null,
proxy: {
'/api': {
target: `http://127.0.0.1:${upstream.address().port}`,