Skip to content

Commit 383c596

Browse files
committed
jest -> vi for new tests
1 parent 96f6434 commit 383c596

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/client/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ test('should reject form-mode elicitation when client only supports URL mode', a
686686
}
687687
);
688688

689-
const handler = jest.fn().mockResolvedValue({
689+
const handler = vi.fn().mockResolvedValue({
690690
action: 'cancel'
691691
});
692692
client.setRequestHandler(ElicitRequestSchema, handler);
@@ -773,7 +773,7 @@ test('should reject URL-mode elicitation when client only supports form mode', a
773773
}
774774
);
775775

776-
const handler = jest.fn().mockResolvedValue({
776+
const handler = vi.fn().mockResolvedValue({
777777
action: 'cancel'
778778
});
779779
client.setRequestHandler(ElicitRequestSchema, handler);

src/server/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ test('should forward notification options when using elicitation completion noti
694694

695695
await Promise.all([client.connect(clientTransport), server.connect(serverTransport)]);
696696

697-
const notificationSpy = jest.spyOn(server, 'notification');
697+
const notificationSpy = vi.spyOn(server, 'notification');
698698

699699
const notifier = server.createElicitationCompletionNotifier('elicitation-789', { relatedRequestId: 42 });
700700
await notifier();

0 commit comments

Comments
 (0)