Skip to content

Commit d6f9e1f

Browse files
merge conflits
2 parents f25157a + ecb3909 commit d6f9e1f

2 files changed

Lines changed: 9 additions & 147 deletions

File tree

.talismanrc

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
fileignoreconfig:
22
- filename: package-lock.json
3-
checksum: 5e64367e6f00c41d8fec66e335f66202d97a0e75006c9ecd331ce8f5856e296a
3+
checksum: 40f1c53aad40a1f8d711c5ccdde7d1c147d371618c237e1fec2d313af51edb97
44
- filename: pnpm-lock.yaml
55
checksum: aa6177859aaa87caf2892e8034657fd485c3abe7c13a833fd28449a1d33fa950
66
- filename: packages/contentstack-import-setup/test/unit/backup-handler.test.ts
@@ -102,13 +102,13 @@ fileignoreconfig:
102102
- filename: packages/contentstack-audit/src/modules/workflows.ts
103103
checksum: 20d1f1985ea2657d3f9fc41b565a44000cbda47e2a60a576fee2aaff06f49352
104104
- filename: packages/contentstack-audit/src/modules/field_rules.ts
105-
checksum: 3eaca968126c9e0e12115491f7942341124c9962d5285dd1cfb355d9e60c6106
105+
checksum: f3ec8f44f8dd73601aa8da1207a72335faf0a12d52e792c1da90ba1bdeef38a7
106106
- filename: packages/contentstack-audit/src/modules/entries.ts
107-
checksum: 305af34194771343fee4e1d4bef60d065f1b8d1d8c1059a332f5d6c52e637ff1
107+
checksum: d8b6aa896aef2a9846f4dbde066d74d5b1e7b5cdbb8b548989616f9af7a8d26b
108108
- filename: packages/contentstack-audit/test/unit/base-command.test.ts
109109
checksum: b0fa8088fcbb17510fa275bd0dde3f6f4246f2525741c30426f07dd62fe497b0
110110
- filename: packages/contentstack-audit/src/modules/content-types.ts
111-
checksum: ddf7b08e6a80af09c6a7019a637c26089fb76572c7c3d079a8af244b02985f16
111+
checksum: e325a50db567abc5d0de758767037dbc10bb76501aadda32999bc96e17595d1b
112112
- filename: packages/contentstack-import/test/unit/commands/cm/stacks/import.test.ts
113113
checksum: b11e57f1b824d405f86438e9e7c59183f8c59b66b42d8d16dbeaf76195a30548
114114
- filename: packages/contentstack-import/test/unit/utils/asset-helper.test.ts
@@ -202,5 +202,9 @@ fileignoreconfig:
202202
- filename: packages/contentstack-import/test/unit/utils/logger.test.ts
203203
checksum: 794e06e657a7337c8f094d6042fb04c779683f97b860efae14e075098d2af024
204204
- filename: packages/contentstack-import-setup/src/import/modules/taxonomies.ts
205-
checksum: 49dd8e754a0d3635585a74e943ab097593f061089a7cddc22683ec6caddbb3c5
205+
checksum: c1bccc885b3f41f187f150c739b4bbd1608b01f09b0d9be0ad9214127cac071d
206+
- filename: packages/contentstack-import-setup/src/commands/cm/stacks/import-setup.ts
207+
checksum: 06035980b36802260f190af6e63632efe167f5b336693163f59268f3e788fba1
208+
- filename: packages/contentstack-import-setup/src/utils/constants.ts
209+
checksum: fcfabb4c53ee822e05903db77595413842d656b55e2869bae97bb6c0e0e209c3
206210
version: '1.0'

packages/contentstack-audit/test/unit/audit-base-command.test.ts

Lines changed: 0 additions & 142 deletions
Original file line numberDiff line numberDiff line change
@@ -371,148 +371,6 @@ describe('AuditBaseCommand class', () => {
371371
});
372372
});
373373

374-
describe('prepareReport method - Report file names', () => {
375-
fancy
376-
.stdout({ print: process.env.PRINT === 'true' || false })
377-
.stub(winston.transports, 'File', () => fsTransport)
378-
.stub(winston, 'createLogger', createMockWinstonLogger)
379-
.stub(fs, 'createWriteStream', () => new PassThrough())
380-
.stub(fs, 'mkdirSync', () => {})
381-
.stub(fs, 'existsSync', () => true)
382-
.it('should generate report file with correct spelling: Entries_Select_field (not feild)', async () => {
383-
const writeFileSyncSpy = sinon.spy(fs, 'writeFileSync');
384-
class CMD extends AuditBaseCommand {
385-
async run() {
386-
await this.init();
387-
this.sharedConfig.reportPath = resolve(__dirname, 'mock', 'contents');
388-
389-
await this.prepareReport('Entries_Select_field', {
390-
entry1: {
391-
name: 'Test Entry',
392-
display_name: 'Select Field',
393-
missingRefs: ['ref1'],
394-
},
395-
});
396-
397-
const jsonCall = writeFileSyncSpy.getCalls().find(call =>
398-
typeof call.args[0] === 'string' && call.args[0].includes('.json')
399-
);
400-
return jsonCall ? (jsonCall.args[0] as string) : undefined;
401-
}
402-
}
403-
404-
const result = await CMD.run([]);
405-
writeFileSyncSpy.restore();
406-
expect(result).to.include('Entries_Select_field.json');
407-
expect(result).to.not.include('Entries_Select_feild');
408-
});
409-
410-
fancy
411-
.stdout({ print: process.env.PRINT === 'true' || false })
412-
.stub(winston.transports, 'File', () => fsTransport)
413-
.stub(winston, 'createLogger', createMockWinstonLogger)
414-
.stub(fs, 'createWriteStream', () => new PassThrough())
415-
.stub(fs, 'mkdirSync', () => {})
416-
.stub(fs, 'existsSync', () => true)
417-
.it('should generate report file with correct spelling: Entries_Mandatory_field (not feild)', async () => {
418-
const writeFileSyncSpy = sinon.spy(fs, 'writeFileSync');
419-
class CMD extends AuditBaseCommand {
420-
async run() {
421-
await this.init();
422-
this.sharedConfig.reportPath = resolve(__dirname, 'mock', 'contents');
423-
424-
await this.prepareReport('Entries_Mandatory_field', {
425-
entry1: {
426-
name: 'Test Entry',
427-
display_name: 'Mandatory Field',
428-
missingRefs: ['ref1'],
429-
},
430-
});
431-
432-
const jsonCall = writeFileSyncSpy.getCalls().find(call =>
433-
typeof call.args[0] === 'string' && call.args[0].includes('.json')
434-
);
435-
return jsonCall ? (jsonCall.args[0] as string) : undefined;
436-
}
437-
}
438-
439-
const result = await CMD.run([]);
440-
writeFileSyncSpy.restore();
441-
expect(result).to.include('Entries_Mandatory_field.json');
442-
expect(result).to.not.include('Entries_Mandatory_feild');
443-
});
444-
445-
fancy
446-
.stdout({ print: process.env.PRINT === 'true' || false })
447-
.stub(winston.transports, 'File', () => fsTransport)
448-
.stub(winston, 'createLogger', createMockWinstonLogger)
449-
.stub(fs, 'createWriteStream', () => new PassThrough())
450-
.stub(fs, 'mkdirSync', () => {})
451-
.stub(fs, 'existsSync', () => true)
452-
.it('should generate report file with correct spelling: Entries_Title_field (not feild)', async () => {
453-
const writeFileSyncSpy = sinon.spy(fs, 'writeFileSync');
454-
class CMD extends AuditBaseCommand {
455-
async run() {
456-
await this.init();
457-
this.sharedConfig.reportPath = resolve(__dirname, 'mock', 'contents');
458-
459-
await this.prepareReport('Entries_Title_field', {
460-
entry1: {
461-
name: 'Test Entry',
462-
display_name: 'Title Field',
463-
missingRefs: ['ref1'],
464-
},
465-
});
466-
467-
const jsonCall = writeFileSyncSpy.getCalls().find(call =>
468-
typeof call.args[0] === 'string' && call.args[0].includes('.json')
469-
);
470-
return jsonCall ? (jsonCall.args[0] as string) : undefined;
471-
}
472-
}
473-
474-
const result = await CMD.run([]);
475-
writeFileSyncSpy.restore();
476-
expect(result).to.include('Entries_Title_field.json');
477-
expect(result).to.not.include('Entries_Title_feild');
478-
});
479-
});
480-
481-
describe('Config - ReportTitleForEntries keys', () => {
482-
it('should have correct spelling in ReportTitleForEntries config', () => {
483-
const config = require('../../src/config').default;
484-
485-
// Verify correct spelling (field, not feild)
486-
expect(config.ReportTitleForEntries).to.have.property('Entries_Select_field');
487-
expect(config.ReportTitleForEntries).to.have.property('Entries_Mandatory_field');
488-
expect(config.ReportTitleForEntries).to.have.property('Entries_Title_field');
489-
490-
// Verify old typo is not present
491-
expect(config.ReportTitleForEntries).to.not.have.property('Entries_Select_feild');
492-
expect(config.ReportTitleForEntries).to.not.have.property('Entries_Mandatory_feild');
493-
expect(config.ReportTitleForEntries).to.not.have.property('Entries_Title_feild');
494-
495-
// Verify values match keys
496-
expect(config.ReportTitleForEntries.Entries_Select_field).to.equal('Entries_Select_field');
497-
expect(config.ReportTitleForEntries.Entries_Mandatory_field).to.equal('Entries_Mandatory_field');
498-
expect(config.ReportTitleForEntries.Entries_Title_field).to.equal('Entries_Title_field');
499-
});
500-
501-
it('should have correct spelling in feild_level_modules array', () => {
502-
const config = require('../../src/config').default;
503-
504-
// Verify correct spelling in the array
505-
expect(config.feild_level_modules).to.include('Entries_Select_field');
506-
expect(config.feild_level_modules).to.include('Entries_Mandatory_field');
507-
expect(config.feild_level_modules).to.include('Entries_Title_field');
508-
509-
// Verify old typo is not present
510-
expect(config.feild_level_modules).to.not.include('Entries_Select_feild');
511-
expect(config.feild_level_modules).to.not.include('Entries_Mandatory_feild');
512-
expect(config.feild_level_modules).to.not.include('Entries_Title_feild');
513-
});
514-
});
515-
516374
describe('Progress Manager Integration', () => {
517375
let configHandlerStub: sinon.SinonStub;
518376
let initializeGlobalSummarySpy: sinon.SinonSpy;

0 commit comments

Comments
 (0)