| 218 | /* ── End-to-end via the loader: real tsconfig in a tmp dir ─────── */ |
| 219 | |
| 220 | static int write_file(const char *path, const char *content) { |
| 221 | FILE *f = fopen(path, "w"); |
| 222 | if (!f) { |
| 223 | return -1; |
| 224 | } |
| 225 | size_t len = strlen(content); |
| 226 | int rc = fwrite(content, 1, len, f) == len ? 0 : -1; |
| 227 | fclose(f); |
| 228 | return rc; |
| 229 | } |
| 230 | |
| 231 | TEST(path_alias_loader_monorepo) { |
| 232 | char tmpl[256]; |