mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
chore(tools/challenge-helper-scripts): migrate tests to Vitest v4 (#65963)
This commit is contained in:
@@ -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
|
||||
};
|
||||
})
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user