(root: string, file: string)
| 102 | const it = testEffect(Layer.mergeAll(LayerNode.compile(FSUtil.node), NodeFileSystem.layer)) |
| 103 | |
| 104 | function remap(root: string, file: string) { |
| 105 | if (file === Global.Path.state) { |
| 106 | return root |
| 107 | } |
| 108 | |
| 109 | if (file.startsWith(Global.Path.state + path.sep)) { |
| 110 | return path.join(root, path.relative(Global.Path.state, file)) |
| 111 | } |
| 112 | |
| 113 | return file |
| 114 | } |
| 115 | |
| 116 | function remappedFs(root: string) { |
| 117 | return Layer.effect( |