| 130 | Image.Service.of({ normalize: () => Effect.fail(new Image.ResizerUnavailableError()) }), |
| 131 | ) |
| 132 | const readLayer = (imageLayer: Layer.Layer<Image.Service>) => |
| 133 | AppNodeBuilder.build(LayerNode.group([ToolRegistry.node, ToolRegistry.toolsNode, ReadTool.node]), [ |
| 134 | [ReadToolFileSystem.node, reader], |
| 135 | [PermissionV2.node, permission], |
| 136 | [Config.node, config], |
| 137 | [Image.node, imageLayer], |
| 138 | [LocationMutation.node, mutation], |
| 139 | [FSUtil.node, testFileSystem], |
| 140 | [Location.node, locationLayer], |
| 141 | [Global.node, Global.layerWith({ data: Global.Path.data })], |
| 142 | [ToolOutputStore.node, ToolOutputStore.nodeWithoutConfig], |
| 143 | ]) |
| 144 | const it = testEffect(readLayer(imageLayer)) |
| 145 | const itWithoutResizer = testEffect(readLayer(unavailableImage)) |
| 146 | const sessionID = SessionV2.ID.make("ses_read_tool_test") |