Skip to content

Commit 2bc7ab0

Browse files
Update
1 parent 452aac0 commit 2bc7ab0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/domain/Samaid.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ export class Samaid {
6363
);
6464

6565
if (outputPath) save(diagram, outputPath);
66-
if (shouldUpdateReadme) updateReadme('README.md', diagram);
66+
if (shouldUpdateReadme)
67+
updateReadme(
68+
process.env.NODE_ENV === 'test' ? '__test_readme__.md' : 'README.md',
69+
diagram,
70+
);
6771

6872
return diagram;
6973
}

0 commit comments

Comments
 (0)