fix: close competition cutover integrity gaps
This commit is contained in:
1 parent
7ea2002975
commit
683d602d63
57 files changed
+4805
-1582
No files matched your search
@@ -31,4 +31,22 @@ describe('competition domain migration CLI', () => {
|
||||
nodeEnv: 'dev',
|
||||
});
|
||||
});
|
||||
|
||||
it('accepts an explicit Match cursor for limited-run recovery', () => {
|
||||
expect(
|
||||
parseCliOptions([
|
||||
'--apply',
|
||||
'--limit=25',
|
||||
'--after',
|
||||
'66a000000000000000000123',
|
||||
]),
|
||||
).toMatchObject({
|
||||
dryRun: false,
|
||||
limit: 25,
|
||||
afterMatchId: '66a000000000000000000123',
|
||||
});
|
||||
expect(() => parseCliOptions(['--after', 'not-an-object-id'])).toThrow(
|
||||
'--after requires a 24-character hexadecimal Match ObjectId.',
|
||||
);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user