guix_mirror_bot pushed a commit to branch master
in repository guix.

commit e990523a526e8cdaede41ef50fd6121daad2fa46
Author: Efraim Flashner <[email protected]>
AuthorDate: Fri Nov 13 14:35:45 2026 +0200

    gnu: node-source-map: Allow skipping the tests.
    
    * gnu/packages/node-xyz.scm (node-source-map)[arguments]: Split the
    'check phase to change directories after the 'package phase.  Adjust the
    'check phase to honor #:tests.
    
    fixup skip tests
---
 gnu/packages/node-xyz.scm | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index afcd0c5693d..16bc632cdea 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -4302,10 +4302,13 @@ target = ['wasm32-unknown-unknown']
                       "--no-wasm-gc"
                       "--no-wasm-snip"
                       "-o" "../../lib/mappings.wasm")))
-          (replace 'check
+          (add-after 'package 'return-to-top-directory
             (lambda _
-              (chdir "../../")
-              (invoke "node" "test/run-tests.js")))
+              (chdir "../../")))
+          (replace 'check
+            (lambda* (#:key tests? #:allow-other-keys)
+              (when tests?
+                (invoke "node" "test/run-tests.js"))))
           (replace 'install
             (lambda args
               (apply (assoc-ref copy:%standard-phases 'install)

Reply via email to