Hi all,
in my build.zig i got this:
const test_exe = b.addTestExe("test", "src/main.zig");```
`main.zig` imports other files for testing:
```zig
comptime {
_ = @import("tests.zig");
}
pub var server: Server = undefined;```
`tests.zig` contains this:
```zig
test {
std.testing.refAllDecls(@import("evented.zig"));
// ...
}```
Running `zig build test` i get this error:
src/evented.zig:134:41: error: root struct of file 'test_runner' has no member named 'server'
connection: *@TypeOf(@import("root").server),
~~~~~~~~~```^
i think it's clear why this happens, but is there a way to have main.zig remain the file @import("root") refers to?
$ zig version
0.11.0-dev.1384+fe6dcdba1```