Skip to content

Commit d1c4f3f

Browse files
jeswrMindaugasLaganeckas
authored andcommitted
chore: create dist path
1 parent f4ed1b2 commit d1c4f3f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src-test/test.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,10 @@ describe('mermaid-cli', () => {
319319
})
320320

321321
describe("NodeJS API (import ... from '@mermaid-js/mermaid-cli')", () => {
322+
beforeAll(async () => {
323+
await fs.mkdir(join(out, './svg/dist/'), { recursive: true })
324+
})
325+
322326
describe('run()', () => {
323327
test('should write markdown output with svg images', async () => {
324328
const expectedOutputMd = 'test-output/mermaid-run-output-test-svg.md'
@@ -359,7 +363,7 @@ describe("NodeJS API (import ... from '@mermaid-js/mermaid-cli')", () => {
359363
)
360364

361365
await run(
362-
'test-positive/mermaid.md', expectedOutputMd, { quiet: true, outputFormat: 'svg', artefacts: './test-output/svg/dist' }
366+
'test-positive/mermaid.md', expectedOutputMd, { quiet: true, outputFormat: 'svg', artefacts: './test-output/svg/dist/' }
363367
)
364368

365369
const markdownFile = await fs.readFile(expectedOutputMd, { encoding: 'utf8' })

0 commit comments

Comments
 (0)