Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-yeager committed Nov 22, 2024
1 parent e0637c3 commit 1eb31d6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 2 additions & 0 deletions commands/__tests__/accounts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jest.mock('../accounts/use');
jest.mock('../accounts/info');
jest.mock('../accounts/remove');
jest.mock('../accounts/clean');
jest.mock('../../lib/commonOpts');
yargs.command.mockReturnValue(yargs);
yargs.demandCommand.mockReturnValue(yargs);

Expand Down Expand Up @@ -56,6 +57,7 @@ describe('commands/accounts', () => {
});

it.each(subcommands)('should attach the %s subcommand', (name, module) => {
console.log(name, module);
accountsCommand.builder(yargs);
expect(yargs.command).toHaveBeenCalledWith(module);
});
Expand Down
4 changes: 1 addition & 3 deletions commands/accounts/clean.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// @ts-nocheck
import { addConfigOptions } from '../../lib/commonOpts';

const { logger } = require('@hubspot/local-dev-lib/logger');
const {
accessTokenForPersonalAccessKey,
Expand All @@ -10,7 +8,7 @@ const { trackCommandUsage } = require('../../lib/usageTracking');
const { i18n } = require('../../lib/lang');
const { loadAndValidateOptions } = require('../../lib/validation');
const { EXIT_CODES } = require('../../lib/enums/exitCodes');
const { addTestingOptions } = require('../../lib/commonOpts');
const { addTestingOptions, addConfigOptions } = require('../../lib/commonOpts');
const { promptUser } = require('../../lib/prompts/promptUtils');
const { getTableContents } = require('../../lib/ui/table');
const SpinniesManager = require('../../lib/ui/SpinniesManager');
Expand Down
3 changes: 1 addition & 2 deletions commands/accounts/list.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// @ts-nocheck
import { addConfigOptions } from '../../lib/commonOpts';

const { logger } = require('@hubspot/local-dev-lib/logger');
const {
getConfig,
Expand All @@ -11,6 +9,7 @@ const {
const {
getAccountIdentifier,
} = require('@hubspot/local-dev-lib/config/getAccountIdentifier');
const { addConfigOptions } = require('../../lib/commonOpts');
const { getTableContents, getTableHeader } = require('../../lib/ui/table');

const { trackCommandUsage } = require('../../lib/usageTracking');
Expand Down

0 comments on commit 1eb31d6

Please sign in to comment.