mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-13 20:07:08 +01:00
stack-tests: drop the dead detail clause and assert the worktree is gone
r.detail === 'pass' can never hold when r.ok is false; the dry-run test now checks git worktree list instead of a state-dir name that was never written. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
426fa370ec
commit
9eb149d839
2 files changed
+2
-2
No files matched your search
@@ -419,7 +419,7 @@ describe('train build --dry-run --stack-tests', () => {
|
||||
'STACK_TESTS: #2 T1 1 new test file(s) pass (test/pr-2.test.ts)',
|
||||
'STACK_TESTS: #1 T2 1 new test file(s) pass (test/pr-1.test.ts)',
|
||||
'STACK_TESTS: #3 T3 no new test files']);
|
||||
expect(fs.readdirSync(path.join(fx.state, 'ship-queue')).filter(n => n.startsWith('stack-tests'))).toEqual([]);
|
||||
expect(fx.repo.git('worktree', 'list', '--porcelain')).not.toContain('gstack-stack-tests-');
|
||||
expect(queue(fx, ['train', 'build', '--prs', `1@${h1}`, '--stack-tests']).status).toBe(EXIT.usage);
|
||||
}, 180_000);
|
||||
});
|
||||
Reference in new issue
Block a user