Clarify viability simulation purpose and preserve PEC cash-flow hypotheses
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-11-11 10:37:33 +02:00
parent aae79c712d
commit a708f079b3
24 changed files with 754 additions and 42 deletions
@@ -30,7 +30,9 @@ const output = ts.transpileModule(source, {
}).outputText;
compileFunction(output, ['require', 'module', 'exports'])(
(name) =>
name === '@/lib/irpc-annual-settlement'
name === './simulation-irpc-pec-plan'
? {SimulationIrpcPecPlan:()=>null}
: name === '@/lib/irpc-annual-settlement'
? annual
: name === '@/lib/irpc-pec-obligation'
? investment
@@ -86,7 +88,7 @@ function harness(c) {
test('actual PEC form reuses context, preserves hidden edits and explains first-year exception', () => {
const c = investmentCase(),
h = harness(c);
h.click('Preparar obrigação PEC');
h.click('Simular PEC');
assert.equal(h.book().pecObligation.subjectNuit, c.b.subjectNuit);
assert.equal(h.book().pecObligation.previousTurnover, '');
h.change('Enquadramento PEC', 'ordinary_resident');