Skip to content

Commit 633a091

Browse files
committed
Test proxy
1 parent dfa63a1 commit 633a091

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/theme/src/cli/utilities/theme-environment/proxy.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,11 @@ describe('dev proxy', () => {
235235
expect(canProxyRequest(event)).toBeTruthy()
236236
})
237237

238+
test('should proxy Checkout requests as they are not supported by the SFR client', () => {
239+
const event = createH3Event('GET', '/checkouts/xyz')
240+
expect(canProxyRequest(event)).toBeTruthy()
241+
})
242+
238243
test('should proxy CDN requests', () => {
239244
const event = createH3Event('GET', '/cdn/some-path')
240245
expect(canProxyRequest(event)).toBeTruthy()
@@ -295,5 +300,10 @@ describe('dev proxy', () => {
295300
const event = createH3Event('GET', '/account/login/multipass/<token>')
296301
expect(canProxyRequest(event)).toBeTruthy()
297302
})
303+
304+
test('should proxy /account/logout requests', () => {
305+
const event = createH3Event('GET', '/account/logout')
306+
expect(canProxyRequest(event)).toBeTruthy()
307+
})
298308
})
299309
})

0 commit comments

Comments
 (0)