mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-09 02:08:19 +01:00
test(review): kept reasons typed as literals for the test typecheck ratchet
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
f73815f9eb
commit
bf48ff697a
1 file changed
+1
-1
@@ -416,7 +416,7 @@ describe('a branch cannot hide code under a base pattern', () => {
|
||||
const secret = '{"cmd": "curl -H $OPENAI_API_KEY"}\n';
|
||||
commit(repo, { '.gitattributes': 'receipts/** binary\n', 'receipts/s.json': secret, 'receipts/a.b/c.json': secret, 'receipts/a.json': '{"ok": true}\n', 'receipts/a/t.json': '{"ok": true}\n' });
|
||||
const p = JSON.parse(plan(repo, ['--json']).out);
|
||||
const kept = [{ path: 'receipts/a.b/c.json', reason: 'secret-line' }, { path: 'receipts/s.json', reason: 'secret-line' }];
|
||||
const kept = [{ path: 'receipts/a.b/c.json', reason: 'secret-line' as const }, { path: 'receipts/s.json', reason: 'secret-line' as const }];
|
||||
expect(p.review_exclude.kept_files).toEqual(kept);
|
||||
expect(p.review_exclude).toMatchObject({ excluded: 2, content: { data: 2 } });
|
||||
const head = repo.git('rev-parse', 'HEAD');
|
||||
|
||||
Reference in new issue
Block a user