Skip to content

Commit

Permalink
chore: re-write tool-runner to typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowusr committed Nov 13, 2023
1 parent 2f23abb commit 80602eb
Show file tree
Hide file tree
Showing 12 changed files with 228 additions and 119 deletions.
2 changes: 1 addition & 1 deletion lib/gui/app.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

const _ = require('lodash');
const ToolRunner = require('./tool-runner');
const {ToolRunner} = require('./tool-runner');

module.exports = class App {
static create(paths, hermione, configs) {
Expand Down
20 changes: 15 additions & 5 deletions lib/gui/index.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
import type {CommanderStatic} from '@gemini-testing/commander';
import chalk from 'chalk';
import opener from 'opener';

import server from './server';
import {logger} from '../common-utils';
import * as utils from '../server-utils';
import {ReporterConfig} from '../types';

const {logError} = utils;

export interface GuiCliOptions {
autoRun: boolean;
open: unknown;
}

export interface GuiConfigs {
options: GuiCliOptions;
program: CommanderStatic;
pluginConfig: ReporterConfig;
}

interface ServerArgs {
paths: string[];
hermione: unknown;
guiApi: unknown;
configs: {
options: {
open: unknown,
}
};
configs: GuiConfigs;
}

export default (args: ServerArgs): void => {
Expand Down
Loading

0 comments on commit 80602eb

Please sign in to comment.