chore(m2): execute host/quant verification, fix live blockers, and record M2 closure evidence (T-215)
This commit is contained in:
parent
87ae19e5f9
commit
a5184bb417
21 changed files with 1370 additions and 74 deletions
|
|
@ -21,6 +21,7 @@ import {
|
|||
type VerifyM2QuantCliDeps,
|
||||
type VerifyM2QuantDdlOnlyReport,
|
||||
type VerifyM2QuantReport,
|
||||
parseVerifyM2QuantArgs,
|
||||
runVerifyM2QuantCli,
|
||||
} from '../verify-m2-quant';
|
||||
|
||||
|
|
@ -1614,5 +1615,48 @@ describe('scripts/verify-m2-quant.ts', () => {
|
|||
expect(await runVerifyM2QuantCli(nonUtcCutoff.deps)).toBe(1);
|
||||
assertSingleLineError(nonUtcCutoff.stderr.text());
|
||||
expect(nonUtcCutoff.stderr.text()).toContain('UTC timestamp ending in');
|
||||
|
||||
const badNvdaWindow = createHarness(baseArgs({ '--nvda-from': '2024-06-10' }));
|
||||
expect(await runVerifyM2QuantCli(badNvdaWindow.deps)).toBe(1);
|
||||
assertSingleLineError(badNvdaWindow.stderr.text());
|
||||
expect(badNvdaWindow.stderr.text()).toContain('must straddle ex-date 2024-06-10');
|
||||
|
||||
const partialExtra = createHarness(baseArgs({ '--eod-split-label': 'AVGO.US' }));
|
||||
expect(await runVerifyM2QuantCli(partialExtra.deps)).toBe(1);
|
||||
assertSingleLineError(partialExtra.stderr.text());
|
||||
expect(partialExtra.stderr.text()).toContain('Incomplete extra EOD split case flags');
|
||||
});
|
||||
|
||||
test('supports explicit split window overrides and extra EOD split case', () => {
|
||||
const parsed = parseVerifyM2QuantArgs(
|
||||
baseArgs({
|
||||
'--nvda-from': '2024-05-20',
|
||||
'--nvda-to': '2024-07-02',
|
||||
'--nexm-from': '2025-06-17',
|
||||
'--nexm-to': '2025-06-27',
|
||||
'--eod-split-label': 'AVGO.US',
|
||||
'--eod-split-listing-id': '10970',
|
||||
'--eod-split-from': '2024-07-11',
|
||||
'--eod-split-to': '2024-07-17',
|
||||
'--eod-split-ex-date': '2024-07-15',
|
||||
'--eod-split-ratio': '10:1',
|
||||
}),
|
||||
{ cwd: '/tmp' }
|
||||
);
|
||||
expect(parsed.kind).toBe('run');
|
||||
if (parsed.kind === 'run') {
|
||||
expect(parsed.nvdaFromDate).toBe('2024-05-20');
|
||||
expect(parsed.nvdaToDate).toBe('2024-07-02');
|
||||
expect(parsed.nexmFromDate).toBe('2025-06-17');
|
||||
expect(parsed.nexmToDate).toBe('2025-06-27');
|
||||
expect(parsed.extraSplitCase).toEqual({
|
||||
label: 'AVGO.US',
|
||||
listingId: 10970,
|
||||
fromDate: '2024-07-11',
|
||||
toDate: '2024-07-17',
|
||||
exDate: '2024-07-15',
|
||||
ratio: '10:1',
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue