Skip to content

Commit

Permalink
test: more tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Sep 27, 2024
1 parent dc024bf commit 6ecb6d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions playground/client-reload/__tests__/client-reload.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
5 changes: 4 additions & 1 deletion playground/test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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<string, string> = {}
Expand Down

0 comments on commit 6ecb6d9

Please sign in to comment.