From 6ecb6d932f4dddd4ea63ee41f1e5c09b0a8bd86d Mon Sep 17 00:00:00 2001 From: Hiroshi Ogawa Date: Fri, 27 Sep 2024 12:26:59 +0900 Subject: [PATCH] test: more tweak --- playground/client-reload/__tests__/client-reload.spec.ts | 8 ++++---- playground/test-utils.ts | 5 ++++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/playground/client-reload/__tests__/client-reload.spec.ts b/playground/client-reload/__tests__/client-reload.spec.ts index 0d4824ab4694f6..69c5ad90df8190 100644 --- a/playground/client-reload/__tests__/client-reload.spec.ts +++ b/playground/client-reload/__tests__/client-reload.spec.ts @@ -48,18 +48,18 @@ describe.runIf(isServe)('client-reload', () => { test('custom hmr port', async () => { await testClientReload({ - port: ports['client-reload'], + port: ports['client-reload/hmr-port'], hmr: { - port: hmrPorts['client-reload'], + port: hmrPorts['client-reload/hmr-port'], }, }) }) test('custom hmr port and cross origin isolation', async () => { await testClientReload({ - port: ports['client-reload'], + port: ports['client-reload/cross-origin'], hmr: { - port: hmrPorts['client-reload'], + port: hmrPorts['client-reload/cross-origin'], }, headers: { 'Cross-Origin-Embedder-Policy': 'require-corp', diff --git a/playground/test-utils.ts b/playground/test-utils.ts index a101504d4fdf45..b0b43544c27f5b 100644 --- a/playground/test-utils.ts +++ b/playground/test-utils.ts @@ -48,6 +48,8 @@ export const ports = { 'css/lightningcss-proxy': 5008, 'backend-integration': 5009, 'client-reload': 5010, + 'client-reload/hmr-port': 5011, + 'client-reload/cross-origin': 5012, } export const hmrPorts = { 'optimize-missing-deps': 24680, @@ -59,7 +61,8 @@ export const hmrPorts = { 'css/lightningcss-proxy': 24686, json: 24687, 'ssr-conditions': 24688, - 'client-reload': 24689, + 'client-reload/hmr-port': 24689, + 'client-reload/cross-origin': 24690, } const hexToNameMap: Record = {}