From 8539517b8e9d702b85d405dd0688fcac29faef1b Mon Sep 17 00:00:00 2001 From: Eduardo Asenjo Date: Sun, 9 Jul 2023 17:28:58 +0100 Subject: [PATCH] feat: add new nut test scenario --- test/commands/sfdocs/generate.nut.ts | 8 ++++++++ 1 file changed, 8 insertions(+) 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}');