Skip to content

Commit

Permalink
feat: re-write the rest of the GUI logic to typescript (#520)
Browse files Browse the repository at this point in the history
* chore: rename tool-runner/utils to typescript

* chore: rewrite tool-runner/utils to typescript

* chore: rewrite reporter-helpers to typescript

* chore: rename tool-runner/index to typescript

* chore: re-write tool-runner to typescript

* test: fix build and e2e tests

* fix: use ensure props instead of assertion

* chore: use node 18 for development

* test: fix unit tests
  • Loading branch information
shadowusr authored Nov 20, 2023
1 parent 637b71b commit 6d0a7b3
Show file tree
Hide file tree
Showing 24 changed files with 915 additions and 607 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
18
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
295 changes: 0 additions & 295 deletions lib/gui/tool-runner/index.js

This file was deleted.

Loading

0 comments on commit 6d0a7b3

Please sign in to comment.