Skip to content

Commit d46b2ad

Browse files
committed
fix(channels): type the token prompter mock for the sensitive-flag assertion
1 parent 422e1b4 commit d46b2ad

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/channels/plugins/setup-wizard-helpers.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ function createTokenPrompter(params: { confirms: boolean[]; texts: string[] }) {
158158
const texts = [...params.texts];
159159
return {
160160
confirm: vi.fn(async () => confirms.shift() ?? true),
161-
text: vi.fn(async () => texts.shift() ?? ""),
161+
text: vi.fn<(textParams: { sensitive?: boolean }) => Promise<string>>(
162+
async () => texts.shift() ?? "",
163+
),
162164
};
163165
}
164166

0 commit comments

Comments
 (0)