Skip to content

Commit f854fcc

Browse files
authored
fix: core json tests (#570)
1 parent 0aca76e commit f854fcc

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/generators/legacy-json-all/index.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ export default {
8383
}
8484

8585
if (output) {
86-
await writeFile(join(output, 'all.json'), JSON.stringify(generatedValue));
86+
await writeFile(
87+
join(output, 'all.json'),
88+
JSON.stringify(generatedValue, null, 2)
89+
);
8790
}
8891

8992
return generatedValue;

src/generators/legacy-json/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default {
7878
for (const section of chunkResult) {
7979
const out = join(output, `${section.api}.json`);
8080

81-
await writeFile(out, JSON.stringify(section));
81+
await writeFile(out, JSON.stringify(section, null, 2));
8282
}
8383
}
8484

0 commit comments

Comments
 (0)