Unified · Split
| @@ -21,22 +21,22 @@ interface RecordedBatchRequest { · 20 unmodified lines | ||
| 21 | 21 | readonly path: string; |
| 22 | 22 | readonly body: { |
| 23 | 23 | readonly batch?: ReadonlyArray<{ |
| 24 | − readonly event?: string; | |
| 24 | + readonly event?: string | undefined; | |
| 25 | 25 | readonly properties?: { |
| 26 | − readonly index?: number; | |
| 27 | − readonly clientType?: string; | |
| 28 | − }; | |
| 26 | + readonly index?: number | undefined; | |
| 27 | + readonly clientType?: string | undefined; | |
| 28 | + } | undefined; | |
| 29 | 29 | }>; |
| 30 | 30 | } | null; |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | interface RecordedBatchBody { |
| 34 | 34 | readonly batch: ReadonlyArray<{ |
| 35 | − readonly event?: string; | |
| 35 | + readonly event?: string | undefined; | |
| 36 | 36 | readonly properties?: { |
| 37 | − readonly index?: number; | |
| 38 | − readonly clientType?: string; | |
| 39 | − }; | |
| 37 | + readonly index?: number | undefined; | |
| 38 | + readonly clientType?: string | undefined; | |
| 39 | + } | undefined; | |
| 40 | 40 | }>; |
| 41 | 41 | } |
| 42 | 42 | |
| @@ -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 | }), |