refactor: remove NoSsr on top level (#1951)
This commit is contained in:
1 parent
43a96fe8e3
commit
2383165470
27 files changed
+211
-133
No files matched your search
@@ -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