chore: Upgrade to Vitest 4 and regroup tests for performance (#2618)
This commit is contained in:
1 parent
a0fd464d23
commit
0c3d46ad3d
36 files changed
+1041
-1207
No files matched your search
@@ -24,8 +24,10 @@ vi.mock('lodash-es', async () => ({
|
||||
}));
|
||||
|
||||
const masonry = mock<ExtendedMasonry>();
|
||||
// The source calls `new Masonry(...)`, and a mock implementation must be
|
||||
// callable with `new`, so it cannot be an arrow function.
|
||||
vi.mock('masonry-layout', () => ({
|
||||
default: vi.fn().mockImplementation(() => {
|
||||
default: vi.fn().mockImplementation(function () {
|
||||
return masonry;
|
||||
}),
|
||||
}));
|
||||
|
||||
Reference in new issue
Block a user