+
{subtitle}
+
{incomeTotal}
+
+ {firstFutureMonthIndex ?? 'none'}
+
+
+ {(allData.income[0]?.monthly ?? []).join(',')}
+
+
{transactionYears.join(',')}
+
+
+
+ );
+}
+
+describe('ReportContext', () => {
+ it('throws an error when used outside of the provider', () => {
+ const spy = jest.spyOn(console, 'error').mockImplementation(() => {});
+ expect(() => render(