504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
22 lines
426 B
Nix
22 lines
426 B
Nix
import ./make-test-python.nix ({ ... }:
|
|
let
|
|
machineName = "machine";
|
|
settingName = "prefix";
|
|
settingValue = "/some/path";
|
|
in
|
|
{
|
|
name = "npmrc";
|
|
|
|
nodes."${machineName}".programs.npm = {
|
|
enable = true;
|
|
npmrc = ''
|
|
${settingName} = ${settingValue}
|
|
'';
|
|
};
|
|
|
|
testScript = ''
|
|
${machineName}.start()
|
|
|
|
assert ${machineName}.succeed("npm config get ${settingName}") == "${settingValue}\n"
|
|
'';
|
|
})
|