const { program } = require('commander');
const fs = require('fs');
const path = require('path');
const open = require('open');
const getPort = require('get-port');
const { createServer } = require('../lib/servers/preview-suit-server');

program
  .description('An interactive application to preview Webf test suits in browser.')
program.parse(process.argv);


(async () => {
  const PORT = await getPort({port: 3300});
  const server = createServer('', PORT);

  open(`http://127.0.0.1:${PORT}/preview-suit`);
})();
