diff --git a/nix/scripts/run-ci-tests.nix b/nix/scripts/run-ci-tests.nix
index 120069540321a190f2131d39110f3a4d0ba3001e..b8eff1097dfa5b187f77385856ba564ad7f91b21 100644
--- a/nix/scripts/run-ci-tests.nix
+++ b/nix/scripts/run-ci-tests.nix
@@ -28,7 +28,7 @@
 
     ${pkgs.eza}/bin/eza -T -L2
 
-    if ! ${nodePackages_latest.mocha}/bin/mocha --colors --jobs 1 --bail --recursive ''${TEST_CASES_PATH}
+    if ! ${pkgs.nodePackages_latest.mocha}/bin/mocha --colors --jobs 1 --bail --recursive ''${TEST_CASES_PATH}
     then
        echo "Tests failed, check your JS!"
        exit 1