mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
test(editor): move blocksuite test to tests folder (#10917)
This commit is contained in:
32
tests/blocksuite/e2e/utils/declare-test-window.ts
Normal file
32
tests/blocksuite/e2e/utils/declare-test-window.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import type * as Effects from '@blocksuite/affine/effects';
|
||||
import type { Store, Transformer, Workspace } from '@blocksuite/affine/store';
|
||||
import type { TestAffineEditorContainer } from '@blocksuite/integration-test';
|
||||
|
||||
declare const _GLOBAL_: typeof Effects;
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
/** Available on playground window
|
||||
* the following instance are initialized in `packages/playground/apps/starter/main.ts`
|
||||
*/
|
||||
$blocksuite: {
|
||||
store: typeof import('@blocksuite/affine/store');
|
||||
blocks: {
|
||||
database: typeof import('@blocksuite/affine/blocks/database');
|
||||
note: typeof import('@blocksuite/affine/blocks/note');
|
||||
};
|
||||
global: {
|
||||
utils: typeof import('@blocksuite/affine/global/utils');
|
||||
};
|
||||
services: typeof import('@blocksuite/affine/shared/services');
|
||||
editor: typeof import('@blocksuite/integration-test');
|
||||
blockStd: typeof import('@blocksuite/affine/block-std');
|
||||
};
|
||||
collection: Workspace;
|
||||
doc: Store;
|
||||
editor: TestAffineEditorContainer;
|
||||
host: EditorHost;
|
||||
job: Transformer;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user