(it "checks the readme example" (let tmpl = nixLib.callPackageJson readme-example.package-json {}; deps = nixLib.callYarnLock readme-example.yarn-lock {}; pkg = nixLib.buildNodePackage ({ inherit (readme-example) src; } // tmpl (nixLib.buildNodeDeps deps)); in [ # TODO we can probably check more here, but this seems like a # good sanity check, since its mostly about building successfully (assertEq "momentjs linked" (builtins.readDir "${pkg}/node_modules") { ".bin" = "directory"; "moment" = "symlink"; })]))