From a58fff85e678aa672ce9e4ed3e11656ab0be9809 Mon Sep 17 00:00:00 2001 From: diosmosis Date: Tue, 10 Sep 2024 15:30:53 -0700 Subject: [PATCH] throw if localtunnel setup fails --- tests/appscript/api.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/appscript/api.spec.ts b/tests/appscript/api.spec.ts index 096eefd..dd6b02e 100644 --- a/tests/appscript/api.spec.ts +++ b/tests/appscript/api.spec.ts @@ -20,6 +20,10 @@ describe('api', () => { port: 3000, host: process.env.USE_LOCALTUNNEL, }); + + if ( ! tunnel.url ) { + throw new Error('Failed to setup localtunnel!'); + } }); beforeAll(async () => {