test(server): utils (#10028)

This commit is contained in:
forehalo
2025-02-10 06:35:11 +00:00
parent 8f6b512cfd
commit c3f5b4abb4
40 changed files with 1577 additions and 2222 deletions
@@ -20,7 +20,7 @@ test.before('start app', async t => {
renderer: false,
doc: true,
} satisfies typeof AFFiNE.flavor;
const { app } = await createTestingApp({
const app = await createTestingApp({
imports: [buildAppModule()],
});
@@ -22,7 +22,7 @@ test.before('start app', async t => {
renderer: false,
doc: false,
} satisfies typeof AFFiNE.flavor;
const { app } = await createTestingApp({
const app = await createTestingApp({
imports: [buildAppModule()],
});
@@ -20,7 +20,7 @@ test.before('start app', async t => {
renderer: true,
doc: false,
} satisfies typeof AFFiNE.flavor;
const { app } = await createTestingApp({
const app = await createTestingApp({
imports: [buildAppModule()],
});
@@ -40,7 +40,7 @@ test.before('init selfhost server', async t => {
// @ts-expect-error override
AFFiNE.isSelfhosted = true;
AFFiNE.flavor.renderer = true;
const { app } = await createTestingApp({
const app = await createTestingApp({
imports: [buildAppModule()],
});
@@ -20,7 +20,7 @@ test.before('start app', async t => {
renderer: false,
doc: false,
} satisfies typeof AFFiNE.flavor;
const { app } = await createTestingApp({
const app = await createTestingApp({
imports: [buildAppModule()],
});