Unified · Split
| @@ -4,6 +4,7 @@ import * as Effect from "effect/Effect"; · 3 unmodified lines | ||
| 4 | 4 | import * as FileSystem from "effect/FileSystem"; |
| 5 | 5 | import * as Layer from "effect/Layer"; |
| 6 | 6 | import * as Path from "effect/Path"; |
| 7 | +import * as PlatformError from "effect/PlatformError"; | |
| 7 | 8 | |
| 8 | 9 | import * as ServerConfig from "../config.ts"; |
| 9 | 10 | import * as VcsDriverRegistry from "../vcs/VcsDriverRegistry.ts"; |
| @@ -185,8 +186,8 @@ it.layer(TestLayer, { excludeTestServices: true })("WorkspaceFileSystemLive", (i · 175 unmodified lines | ||
| 185 | 186 | operationPath: resolvedPath, |
| 186 | 187 | operation: "realpath-target", |
| 187 | 188 | }); |
| 188 | − expect(error.cause).toBeInstanceOf(Error); | |
| 189 | − expect((error.cause as NodeJS.ErrnoException).code).toBe("ENOENT"); | |
| 189 | + expect(error.cause).toBeInstanceOf(PlatformError.PlatformError); | |
| 190 | + expect((error.cause as PlatformError.PlatformError).reason._tag).toBe("NotFound"); | |
| 190 | 191 | }), |
| 191 | 192 | ); |
| 192 | 193 | }); |