mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-02 02:00:49 +08:00
refactor: remove NoSsr on top level (#1951)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { vi } from 'vitest';
|
||||
|
||||
vi.mock('lottie-web', () => ({
|
||||
default: {},
|
||||
}));
|
||||
|
||||
vi.mock('@blocksuite/editor', () => ({
|
||||
EditorContainer: vi.fn(),
|
||||
}));
|
||||
|
||||
if (typeof window !== 'undefined' && HTMLCanvasElement) {
|
||||
// @ts-expect-error
|
||||
HTMLCanvasElement.prototype.getContext = () => {
|
||||
return {
|
||||
fillRect: vi.fn(),
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user