Skip to content

Commit 912faee

Browse files
committed
test(mcp-server): adjust builtin template expectations
1 parent 835f5a1 commit 912faee

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

packages/mcp-server/test/e2e/builtin-templates.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ describe('mcp-server builtin templates', { timeout: 20000 }, () => {
2929
typeof template.slug === 'string' ? template.slug.startsWith('builtin/') : false,
3030
)
3131

32-
if (process.env.TRANSLOADIT_ENDPOINT?.includes('devdock')) {
32+
const endpoint = process.env.TRANSLOADIT_ENDPOINT ?? ''
33+
const isLocalEndpoint =
34+
endpoint.includes('localhost') || endpoint.includes('127.0.0.1') || endpoint.includes('::1')
35+
36+
if (isLocalEndpoint) {
3337
expect(builtins.length).toBe(2)
3438
} else {
3539
expect(builtins.length).toBeGreaterThan(0)

0 commit comments

Comments
 (0)