Migrate to vitest from jest (#1074)
Co-authored-by: Felix Weinberger <3823880+felixweinberger@users.noreply.github.com> Co-authored-by: Felix Weinberger <fweinberger@anthropic.com>
This commit is contained in:
parent
324d471158
commit
98df118a4c
1 changed files with 1713 additions and 3434 deletions
|
|
@ -1,14 +1,15 @@
|
|||
import { validateToolName, validateAndWarnToolName, issueToolNameWarning } from './toolNameValidation.js';
|
||||
import { vi, MockInstance } from 'vitest';
|
||||
|
||||
// Spy on console.warn to capture output
|
||||
let warnSpy: jest.SpyInstance;
|
||||
let warnSpy: MockInstance;
|
||||
|
||||
beforeEach(() => {
|
||||
warnSpy = jest.spyOn(console, 'warn').mockImplementation();
|
||||
warnSpy = vi.spyOn(console, 'warn').mockImplementation(() => {});
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
jest.restoreAllMocks();
|
||||
vi.restoreAllMocks();
|
||||
});
|
||||
|
||||
describe('validateToolName', () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue