Skip to content

Commit c798969

Browse files
cs-rajclaude
andcommitted
fix(DX-10057): fix CI test failures in migration and seed packages
- migration.test.ts: update alias assertion to expect empty array (cm:migration alias was removed) - seed.test.ts: mock @contentstack/cli-cm-import to cut the seed→import→audit chain which conflicted with the existing @contentstack/cli-utilities mock Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 1c383cd commit c798969

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

packages/contentstack-migration/test/unit/commands/cm/stacks/migration.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ describe('Migration Command', () => {
122122
expect(MigrationCommand.usage).to.include('migration');
123123
});
124124

125-
it('should have aliases including cm:migration', () => {
125+
it('should have empty aliases array (cm:migration alias removed)', () => {
126126
expect(MigrationCommand.aliases).to.be.an('array');
127-
expect(MigrationCommand.aliases).to.include('cm:migration');
127+
expect(MigrationCommand.aliases).to.be.empty;
128128
});
129129
});
130130

packages/contentstack-seed/test/commands/cm/stacks/seed.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { isAuthenticated, configHandler, cliux } from '@contentstack/cli-utiliti
44

55
// Mock dependencies
66
jest.mock('../../../../src/seed/index');
7+
jest.mock('@contentstack/cli-cm-import', () => ({ __esModule: true, default: { run: jest.fn() } }));
78
jest.mock('@contentstack/cli-utilities', () => {
89
const { Flags, Command } = require('@oclif/core');
910
return {

0 commit comments

Comments
 (0)