diff --git a/test/commands/sfdocs/generate.nut.ts b/test/commands/sfdocs/generate.nut.ts index 4ca9d9f..5b403fe 100644 --- a/test/commands/sfdocs/generate.nut.ts +++ b/test/commands/sfdocs/generate.nut.ts @@ -30,6 +30,14 @@ describe('docs generate NUTs', () => { expect(result?.format).to.equal('markdown'); }); + it('should generate docs in markdown and sfdocs folder', () => { + const result = execCmd('docs generate --output-dir sfdocs --format markdown --json', { + ensureExitCode: 0, + }).jsonOutput?.result; + expect(result?.format).to.equal('markdown'); + expect(result?.outputdir).to.equal('sfdocs'); + }); + it('should generate docs with reset option and not contain previous files', () => { // fs.mkdirSync('docs/force-app/objects', { recursive: true }); // fs.writeFileSync('docs/force-app/objects/CustomObject.json', '{test: true}');