aboutsummaryrefslogtreecommitdiffstats
path: root/tests/runner/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/runner/server.js')
-rw-r--r--tests/runner/server.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/runner/server.js b/tests/runner/server.js
new file mode 100644
index 000000000..10fbc220f
--- /dev/null
+++ b/tests/runner/server.js
@@ -0,0 +1,13 @@
+import { createTestServer } from "./createTestServer.js";
+
+const port = process.env.PORT || 3000;
+
+async function runServer() {
+ const app = await createTestServer();
+
+ app.listen( { port, host: "0.0.0.0" }, function() {
+ console.log( `Open tests at http://localhost:${ port }/tests/` );
+ } );
+}
+
+runServer();