History

format workspace filesystem tests

Cursor Agent committed 3 months ago

Commit 61bfbce1 parent 217fbf11 file · +3 −10Browse files

Showing the changes to apps/server/src/workspace/WorkspaceFileSystem.test.ts (1 of 1 file). Show all

Unified · Split

apps/server/src/workspace/WorkspaceFileSystem.test.ts+3−10
@@ -206,10 +206,7 @@ it.layer(TestLayer, { excludeTestServices: true })("WorkspaceFileSystemLive", (i · 205 unmodified lines
206 operation: "realpath-target",206 operation: "realpath-target",
207 });207 });
208 assert.instanceOf(error.cause, PlatformError.PlatformError);208 assert.instanceOf(error.cause, PlatformError.PlatformError);
209 assert.strictEqual(209 assert.strictEqual((error.cause as PlatformError.PlatformError).reason._tag, "NotFound");
210 (error.cause as PlatformError.PlatformError).reason._tag,
211 "NotFound",
212 );
213 }),210 }),
214 );211 );
215 });212 });
@@ -243,9 +240,7 @@ it.layer(TestLayer, { excludeTestServices: true })("WorkspaceFileSystemLive", (i · 27 unmodified lines
243 yield* writeTextFile(cwd, "src/existing.ts", "export {};\n");240 yield* writeTextFile(cwd, "src/existing.ts", "export {};\n");
244 241
245 const beforeWrite = yield* workspaceEntries.list({ cwd });242 const beforeWrite = yield* workspaceEntries.list({ cwd });
246 assert.isFalse(243 assert.isFalse(beforeWrite.entries.some((entry) => entry.path === "plans/effect-rpc.md"));
247 beforeWrite.entries.some((entry) => entry.path === "plans/effect-rpc.md"),
248 );
249 244
250 yield* workspaceFileSystem.writeFile({245 yield* workspaceFileSystem.writeFile({
251 cwd,246 cwd,
@@ -254,9 +249,7 @@ it.layer(TestLayer, { excludeTestServices: true })("WorkspaceFileSystemLive", (i · 2 unmodified lines
254 });249 });
255 250
256 const afterWrite = yield* workspaceEntries.list({ cwd });251 const afterWrite = yield* workspaceEntries.list({ cwd });
257 assert.isTrue(252 assert.isTrue(afterWrite.entries.some((entry) => entry.path === "plans/effect-rpc.md"));
258 afterWrite.entries.some((entry) => entry.path === "plans/effect-rpc.md"),
259 );
260 assert.isFalse(afterWrite.truncated);253 assert.isFalse(afterWrite.truncated);
261 }),254 }),
262 );255 );