This was YEARS ago around the early public releases of KMP supporting JS and we dealt with it the MacGyver way: Add a gradle task that processes resources and generates code, inlining the byte-representations of those resources into a global map inside the test sources and access them by map key. Test compile times were utterly abysmal, but it worked 😉