Skip to content

Commit 0ea677b

Browse files
authored
Merge pull request #90 from devsapp/refactor-tests
refactor(tests): restructure unit test directory and add missing tests
2 parents c7ef072 + a387f1f commit 0ea677b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+2655
-1539
lines changed
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import Alias from '../../src/subCommands/alias';
2-
import FC from '../../src/resources/fc';
3-
import logger from '../../src/logger';
4-
import { IInputs } from '../../src/interface';
5-
import { promptForConfirmOrDetails, tableShow } from '../../src/utils';
1+
import Alias from '../../../src/subCommands/alias';
2+
import FC from '../../../src/resources/fc';
3+
import logger from '../../../src/logger';
4+
import { IInputs } from '../../../src/interface';
5+
import { promptForConfirmOrDetails, tableShow } from '../../../src/utils';
66

77
// Mock dependencies
8-
jest.mock('../../src/resources/fc');
9-
jest.mock('../../src/logger', () => {
8+
jest.mock('../../../src/resources/fc');
9+
jest.mock('../../../src/logger', () => {
1010
const mockLogger = {
1111
log: jest.fn(),
1212
info: jest.fn(),
@@ -27,7 +27,7 @@ jest.mock('../../src/logger', () => {
2727
default: mockLogger,
2828
};
2929
});
30-
jest.mock('../../src/utils');
30+
jest.mock('../../../src/utils');
3131

3232
describe('Alias', () => {
3333
let mockInputs: IInputs;

0 commit comments

Comments
 (0)