mirror of
https://github.com/socketio/socket.io.git
synced 2026-01-09 15:08:12 -05:00
Notes: - TypeScript is updated from v4 to v5 - WebDriverIO is updated from v7 to v8 - prettier is kept in v2, in order to reduce style changes
20 lines
415 B
TypeScript
20 lines
415 B
TypeScript
import { Launcher } from "@wdio/cli";
|
|
import { createServer } from "./support/server";
|
|
|
|
const launcher = new Launcher("./wdio.conf.js");
|
|
|
|
async function run() {
|
|
const server = createServer();
|
|
|
|
try {
|
|
const exitCode = await launcher.run();
|
|
server.close();
|
|
process.exit(exitCode);
|
|
} catch (e) {
|
|
console.error("Launcher failed to start the test", e.stacktrace);
|
|
process.exit(1);
|
|
}
|
|
}
|
|
|
|
run();
|