chore(tools/challenge-helper-scripts): migrate tests to Vitest v4 (#65963)

This commit is contained in:
Jeevankumar S
2026-02-21 11:13:19 +05:30
committed by GitHub
parent 81748f8241
commit 7a7cccc863
3 changed files with 11 additions and 7 deletions
+5 -1
View File
@@ -25,7 +25,11 @@ vi.mock('gray-matter', () => {
vi.mock('bson', () => {
return {
ObjectId: vi.fn(() => ({ toString: () => mockChallengeId }))
ObjectId: vi.fn().mockImplementation(function () {
return {
toString: () => mockChallengeId
};
})
};
});