mirror of https://github.com/garrytan/gstack.git
29 lines
1006 B
TypeScript
29 lines
1006 B
TypeScript
/**
|
|
* plan-devex-review plan-mode handshake E2E (gate tier, paid).
|
|
*
|
|
* See test/skill-e2e-plan-ceo-plan-mode.test.ts for the shared assertion
|
|
* contract. This file exercises the same handshake against /plan-devex-review.
|
|
*/
|
|
|
|
import { describe, test, expect } from 'bun:test';
|
|
import {
|
|
runPlanModeHandshakeTest,
|
|
assertHandshakeShape,
|
|
} from './helpers/plan-mode-handshake-helpers';
|
|
|
|
const shouldRun = !!process.env.EVALS && process.env.EVALS_TIER === 'gate';
|
|
const describeE2E = shouldRun ? describe : describe.skip;
|
|
|
|
describeE2E('plan-devex-review plan-mode handshake (gate)', () => {
|
|
test('handshake fires before any Write/Edit when plan mode is detected', async () => {
|
|
const result = await runPlanModeHandshakeTest({
|
|
skillName: 'plan-devex-review',
|
|
answerLabel: 'Exit',
|
|
});
|
|
|
|
expect(result.askUserQuestions.length).toBeGreaterThanOrEqual(1);
|
|
expect(result.writeOrEditBeforeAsk).toBe(false);
|
|
assertHandshakeShape(result.askUserQuestions[0]!);
|
|
}, 120_000);
|
|
});
|