aboutsummaryrefslogtreecommitdiff
path: root/scripts/testing/tests
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-07-02 17:11:05 -0400
committerCraig Jennings <c@cjennings.net>2026-07-02 17:11:05 -0400
commit4294c7a660c0290569e6ca4886ccdaa55df8ae09 (patch)
tree5abea3aea03448a467ac724b0f8cd9c579223836 /scripts/testing/tests
parent21e82448fc66e2249b8c30ddfa6f487af9f5f718 (diff)
downloadarchsetup-4294c7a660c0290569e6ca4886ccdaa55df8ae09.tar.gz
archsetup-4294c7a660c0290569e6ca4886ccdaa55df8ae09.zip
feat(tooling): provision eask via user-local npm install
chime and linear-emacs shell out to eask but nothing installed it. The block runs npm install -g --prefix ~/.local as the user after the node tooling, so eask lands on PATH without root. A stowed .npmrc pins the same prefix in dotfiles. VM asserts both.
Diffstat (limited to 'scripts/testing/tests')
-rw-r--r--scripts/testing/tests/test_packages.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/testing/tests/test_packages.py b/scripts/testing/tests/test_packages.py
index f0d8ff2..74737e2 100644
--- a/scripts/testing/tests/test_packages.py
+++ b/scripts/testing/tests/test_packages.py
@@ -74,3 +74,13 @@ def test_blueman_not_installed(host):
# blueman was retired 2026-07-02 in favor of the dotfiles bt panel;
# its reappearance means the desktop_environment step regressed.
assert not host.package("blueman").is_installed
+
+
+@pytest.mark.attribution("archsetup")
+def test_eask_installed_user_local(host, home):
+ # Installed via npm -g --prefix ~/.local as the user; chime and
+ # linear-emacs shell out to it.
+ f = host.file("%s/.local/bin/eask" % home)
+ assert f.exists, "eask missing from ~/.local/bin"
+ npmrc = host.file("%s/.npmrc" % home)
+ assert npmrc.exists, ".npmrc (user npm prefix) not stowed"