about summary refs log tree commit diff
path: root/__e2e__/mock-server.ts
diff options
context:
space:
mode:
Diffstat (limited to '__e2e__/mock-server.ts')
-rw-r--r--__e2e__/mock-server.ts13
1 files changed, 11 insertions, 2 deletions
diff --git a/__e2e__/mock-server.ts b/__e2e__/mock-server.ts
index b5f13a87f..d4be040df 100644
--- a/__e2e__/mock-server.ts
+++ b/__e2e__/mock-server.ts
@@ -1,7 +1,7 @@
 import {createServer as createHTTPServer} from 'node:http'
 import {parse} from 'node:url'
 
-import {createServer, TestPDS} from '../jest/test-pds'
+import {createServer, type TestPDS} from '../jest/test-pds'
 
 async function main() {
   let server: TestPDS
@@ -509,7 +509,16 @@ async function main() {
         }
       }
       console.log('Ready')
-      return res.writeHead(200).end(server.pdsUrl)
+      return res
+        .writeHead(200, {
+          'content-type': 'application/json',
+        })
+        .end(
+          JSON.stringify({
+            pdsUrl: server.pdsUrl,
+            appviewDid: server.appviewDid,
+          }),
+        )
     } catch (e) {
       console.error('Error!', e)
       return res.writeHead(500).end()