Showing the changes to apps/server/src/workspace/WorkspaceFileSystem.test.ts (1 of 2 files). Show all
Unified · Split
| @@ -189,6 +189,9 @@ it.layer(TestLayer, { excludeTestServices: true })("WorkspaceFileSystemLive", (i · 188 unmodified lines | ||
| 189 | 189 | expect(error.cause).toBeInstanceOf(Error); |
| 190 | 190 | const cause = error.cause as PlatformError.PlatformError; |
| 191 | 191 | assert.equal(cause._tag, "PlatformError"); |
| 192 | + if (cause.reason._tag === "BadArgument") { | |
| 193 | + assert.fail("expected filesystem system error"); | |
| 194 | + } | |
| 192 | 195 | assert.equal(cause.reason._tag, "NotFound"); |
| 193 | 196 | assert.equal(cause.reason.pathOrDescriptor, resolvedPath); |
| 194 | 197 | }), |