feat(qa): integrate financial example, growth, dividends and detailed declarations

This commit is contained in:
2026-11-20 14:59:36 +02:00
parent b2cfa93945
commit 9c34af0406
13 changed files with 1532 additions and 54 deletions
@@ -8,6 +8,8 @@ import React from 'react';
import { renderToStaticMarkup } from 'react-dom/server';
import { financialReportFixture } from './fixtures/integral-financial-plan.mjs';
import * as report from '../../resources/js/lib/integral-financial-report.ts';
import * as warnings from '../../resources/js/lib/financial-plan-warnings.ts';
import * as annual from '../../resources/js/lib/annual-example-report.ts';
import {
serializeBusinessPlanSnapshot,
restoreBusinessPlanSnapshot,
@@ -36,7 +38,13 @@ void test('one startup editor retains all rows and persists an edit without dupl
? report
: name === './investment-report-tables'
? { InvestmentReportTables: () => null }
: require(name),
: name === '@/lib/financial-plan-warnings'
? warnings
: name === '@/lib/annual-example-report'
? annual
: name === './business-plan-warnings'
? { BusinessPlanWarnings: () => null }
: require(name),
module,
module.exports,
);