We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e43bbc6 commit 1c9920aCopy full SHA for 1c9920a
node-src/tasks/report.test.ts
@@ -100,4 +100,16 @@ describe('generateRport', () => {
100
path.join(__dirname, '../../chromatic-build-1.xml')
101
);
102
});
103
+
104
+ it('skips report generation when junitReport is false', async () => {
105
+ const ctx = {
106
+ client,
107
+ log: { ...log, debug: vi.fn() },
108
+ options: { junitReport: false },
109
+ build,
110
+ } as any;
111
+ await generateReport(ctx);
112
+ expect(ctx.log.debug).toHaveBeenCalledWith('junit report not configured, skipping');
113
+ expect(reportBuilder.writeTo).not.toHaveBeenCalled();
114
+ });
115
0 commit comments