Skip to content

Commit 969a82d

Browse files
committed
chore: format
1 parent c02e13d commit 969a82d

File tree

3 files changed

+30
-34
lines changed

3 files changed

+30
-34
lines changed

packages/common/test/TreeShaking.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { spawnSync } from "node:child_process";
22
import {
3-
existsSync,
4-
mkdirSync,
5-
readdirSync,
6-
readFileSync,
7-
rmSync,
3+
existsSync,
4+
mkdirSync,
5+
readdirSync,
6+
readFileSync,
7+
rmSync,
88
} from "node:fs";
99
import { basename, dirname, join, resolve } from "node:path";
1010
import { fileURLToPath } from "node:url";

packages/common/test/local-first/Protocol.test.ts

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,27 +1305,30 @@ describe("E2E sync", () => {
13051305
},
13061306
);
13071307

1308-
it("client and relay each have a random half of the data - many steps", { timeout: 15000 }, async () => {
1309-
await using run = testCreateRunner();
1310-
const [clientStorage, relayStorage] = await createStorages();
1308+
it(
1309+
"client and relay each have a random half of the data - many steps",
1310+
{ timeout: 15000 },
1311+
async () => {
1312+
await using run = testCreateRunner();
1313+
const [clientStorage, relayStorage] = await createStorages();
13111314

1312-
const shuffledMessages = deps.randomLib.shuffle(messages);
1313-
const middle = Math.floor(shuffledMessages.length / 2);
1314-
const firstHalf = shuffledMessages.slice(0, middle);
1315-
const secondHalf = shuffledMessages.slice(middle);
1315+
const shuffledMessages = deps.randomLib.shuffle(messages);
1316+
const middle = Math.floor(shuffledMessages.length / 2);
1317+
const firstHalf = shuffledMessages.slice(0, middle);
1318+
const secondHalf = shuffledMessages.slice(middle);
13161319

1317-
assertNonEmptyArray(firstHalf);
1318-
assertNonEmptyArray(secondHalf);
1320+
assertNonEmptyArray(firstHalf);
1321+
assertNonEmptyArray(secondHalf);
13191322

1320-
await run(clientStorage.writeMessages(testOwnerIdBytes, firstHalf));
1321-
await run(relayStorage.writeMessages(testOwnerIdBytes, secondHalf));
1323+
await run(clientStorage.writeMessages(testOwnerIdBytes, firstHalf));
1324+
await run(relayStorage.writeMessages(testOwnerIdBytes, secondHalf));
13221325

1323-
const syncSteps = await reconcile(
1324-
clientStorage,
1325-
relayStorage,
1326-
ProtocolMessageRangesMaxSize.orThrow(3000),
1327-
);
1328-
expect(syncSteps).toMatchInlineSnapshot(`
1326+
const syncSteps = await reconcile(
1327+
clientStorage,
1328+
relayStorage,
1329+
ProtocolMessageRangesMaxSize.orThrow(3000),
1330+
);
1331+
expect(syncSteps).toMatchInlineSnapshot(`
13291332
{
13301333
"syncSizes": [
13311334
392,
@@ -1370,7 +1373,8 @@ describe("E2E sync", () => {
13701373
"syncSteps": 38,
13711374
}
13721375
`);
1373-
});
1376+
},
1377+
);
13741378

13751379
it("starts sync from createProtocolMessageFromCrdtMessages", async () => {
13761380
const owner = testOwner;

packages/common/tsconfig.json

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@
66
"allowJs": true,
77
"resolveJsonModule": true
88
},
9-
"include": [
10-
"src",
11-
"test",
12-
"vitest.*.config.ts"
13-
],
14-
"exclude": [
15-
"dist",
16-
"node_modules",
17-
"test/tmp"
18-
]
19-
}
9+
"include": ["src", "test", "vitest.*.config.ts"],
10+
"exclude": ["dist", "node_modules", "test/tmp"]
11+
}

0 commit comments

Comments
 (0)