refactor: move affine utils into @affine/workspace (#2611)

This commit is contained in:
Himself65
2023-05-31 13:13:59 +08:00
parent 840ce7d146
commit a84cfb80d1
18 changed files with 72 additions and 95 deletions
+2 -3
View File
@@ -2,16 +2,15 @@
* @vitest-environment node
*/
import { loginResponseSchema } from '@affine/workspace/affine/login';
import type { affineApis as API } from '@affine/workspace/affine/shared';
import { beforeAll, describe, expect, it, vi } from 'vitest';
import type { affineApis as API } from '../apis';
let affineApis: typeof API;
beforeAll(async () => {
// @ts-expect-error
globalThis.window = undefined;
affineApis = (await import('../apis')).affineApis;
affineApis = (await import('@affine/workspace/affine/shared')).affineApis;
});
describe('apis', () => {