Fix tests not depending on core lib module

This commit is contained in:
kayomn 2022-10-25 00:39:43 +01:00
parent e24868406c
commit a2abd9d42d
1 changed files with 1 additions and 0 deletions

View File

@ -36,6 +36,7 @@ pub fn build(builder: *std.build.Builder) void {
{ {
const tests = builder.addTestExe("test", "./src/tests.zig"); const tests = builder.addTestExe("test", "./src/tests.zig");
tests.addPackage(core_pkg);
tests.setTarget(target); tests.setTarget(target);
tests.setBuildMode(mode); tests.setBuildMode(mode);
builder.step("test", "Run unit tests").dependOn(&tests.step); builder.step("test", "Run unit tests").dependOn(&tests.step);