fix: complete InvesteMoz validation and error corrections

This commit is contained in:
2026-10-29 21:47:33 +02:00
parent 63147312e2
commit daf8623441
718 changed files with 127308 additions and 20959 deletions
@@ -12,7 +12,7 @@ import {
generateProjectDossierPackage,
} from '../../resources/js/lib/project-dossier-report.ts';
test('concurrent export is ignored; failed generation unlocks one retry without mutating inputs', async () => {
void test('concurrent export is ignored; failed generation unlocks one retry without mutating inputs', async () => {
const gate = new DossierExportGate();
const draft = {
project_title: 'SINTÉTICO QA',
@@ -46,7 +46,7 @@ test('concurrent export is ignored; failed generation unlocks one retry without
assert.equal(JSON.stringify(draft), saved);
});
test('all operations show Portuguese recovery text while retaining technical details in diagnostics', () => {
void test('all operations show Portuguese recovery text while retaining technical details in diagnostics', () => {
for (const operation of ['word', 'package', 'pdf', 'csv', 'attachments']) {
const error = new Error('English internals / private stack');
const logs = [];
@@ -62,7 +62,7 @@ test('all operations show Portuguese recovery text while retaining technical det
}
});
test('attachment read failure and size refusal preserve existing selection; retry deduplicates bytes and keeps captions', async () => {
void test('attachment read failure and size refusal preserve existing selection; retry deduplicates bytes and keeps captions', async () => {
const file = new File(['SINTÉTICO QA'], 'qa.txt', { type: 'text/plain' });
const current = [{ file, include: false, caption: 'Legenda conservada' }];
const broken = new File(['another'], 'broken.txt');
@@ -89,7 +89,7 @@ test('attachment read failure and size refusal preserve existing selection; retr
assert.equal(result.attachments[0].include, false);
});
test('actual Word PDF and ZIP generators recover after a transient attachment read failure; archive has one original', async () => {
void test('actual Word PDF and ZIP generators recover after a transient attachment read failure; archive has one original', async () => {
const model = createProjectDossierReport(
{ project_title: 'QA recuperação' },
{ selectedSections: new Set(['summary', 'annexes']) },