I am new to Zig and so far it looks like an amazing language. However, I struggle with finding out how to do some basic things, like tests. What I tried is
zig test src/main.zig. That does work, as long as I don’t have dependencies. However when I add a dependency like this:
zig build run finds the dependency correctly. But
zig test src/main.zig will throw an error like this:
./src/main.zig:2:11: error: unable to find 'mecha' const m = @import("mecha");
How to setup this correctly?