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