Files
xahau.js/test/mockedServer.ts
Nathan Nichols 8b95ee5fab build: Initial linting setup (#1560)
* sets up linting config and runs `yarn lint --fix` once, so that all changes will show up correctly in future PRs.

* Note that there are still a lot of linter errors.
2021-10-04 14:10:10 -04:00

18 lines
389 B
TypeScript

import { createMockRippled } from "./mockRippled";
const port = 34371;
function main() {
// @ts-expect-error -- mocha.
if (global.describe) {
// we are running inside mocha, exiting
return;
}
console.log(`starting server on port ${port}`);
createMockRippled(port);
console.log(`starting server on port ${String(port + 1)}`);
createMockRippled(port + 1);
}
main();