aboutsummaryrefslogtreecommitdiffstats
path: root/tests/runner/server.js
blob: 10fbc220f42b4e0a782d0c4a478190f72df51cf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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();