refactor: move utils and cleanup test helpers (#10261)
This commit is contained in:
2
blocksuite/playground/apps/env.d.ts
vendored
2
blocksuite/playground/apps/env.d.ts
vendored
@@ -1,5 +1,4 @@
|
||||
import type { EditorHost } from '@blocksuite/block-std';
|
||||
import type { TestUtils } from '@blocksuite/blocks';
|
||||
import type { AffineEditorContainer } from '@blocksuite/presets';
|
||||
import type { BlockSchema, Blocks, Workspace, Transformer } from '@blocksuite/store';
|
||||
import type { z } from 'zod';
|
||||
@@ -20,7 +19,6 @@ declare global {
|
||||
job: Transformer;
|
||||
Y: typeof Y;
|
||||
std: typeof std;
|
||||
testUtils: TestUtils;
|
||||
host: EditorHost;
|
||||
testWorker: Worker;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { AffineSchemas, SpecProvider, TestUtils } from '@blocksuite/blocks';
|
||||
import { AffineSchemas, SpecProvider } from '@blocksuite/blocks';
|
||||
import { nanoid, Schema, Transformer } from '@blocksuite/store';
|
||||
import {
|
||||
createAutoIncrementIdGenerator,
|
||||
@@ -73,7 +73,6 @@ export function createStarterDocCollection() {
|
||||
},
|
||||
});
|
||||
window.Y = Y;
|
||||
window.testUtils = new TestUtils();
|
||||
|
||||
return collection;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user