Skip to content

Commit

Permalink
chore: fix cliCommands imports
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowusr committed Aug 22, 2023
1 parent 0e7be48 commit 198c456
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lib/cli-commands/gui.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
'use strict';

const {cliCommands} = require('.');
const runGui = require('../gui').default;
const Api = require('../gui/api');
const {GUI: commandName} = require('./');

const {GUI: commandName} = cliCommands;

module.exports = (program, pluginConfig, hermione) => {
// must be executed here because it adds `gui` field in `gemini` and `hermione tool`,
Expand Down
4 changes: 3 additions & 1 deletion lib/cli-commands/merge-reports.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
'use strict';

const {MERGE_REPORTS: commandName} = require('./');
const {cliCommands} = require('.');
const mergeReports = require('../merge-reports');
const {logError} = require('../server-utils');

const {MERGE_REPORTS: commandName} = cliCommands;

module.exports = (program, pluginConfig, hermione) => {
program
.command(`${commandName} [paths...]`)
Expand Down
4 changes: 3 additions & 1 deletion lib/cli-commands/remove-unused-screens/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ const chalk = require('chalk');
const filesize = require('filesize');
const Promise = require('bluebird');

const {REMOVE_UNUSED_SCREENS: commandName} = require('..');
const {cliCommands} = require('..');
const {getTestsFromFs, findScreens, askQuestion, identifyOutdatedScreens, identifyUnusedScreens, removeScreens} = require('./utils');
const {DATABASE_URLS_JSON_NAME, LOCAL_DATABASE_NAME} = require('../../constants/database');
const {logger} = require('../../common-utils');

const {REMOVE_UNUSED_SCREENS: commandName} = cliCommands;

// TODO: remove hack after add ability to add controllers from plugin in silent mode
function proxyHermione() {
const proxyHandler = {
Expand Down

0 comments on commit 198c456

Please sign in to comment.