diff --git a/flake-module.nix b/flake-module.nix index ee0429082..2bab04658 100644 --- a/flake-module.nix +++ b/flake-module.nix @@ -8,7 +8,7 @@ ... }: let # this change on each change of dependencies, unfortunately this hash not yet automatically updated from SRI of package.lock - npmDepsHash = "sha256-zJZeKIwYJF2JAeBPTyMgbxZkKR4t2hMQyzu/m3PDDAE="; + npmDepsHash = "sha256-ruo1UWlwlKxhfh7/PWgYSakFhe8Q8Q+9bg7uPDqnLNI="; #### # there is officia polkadot on nixpkgs, but it has no local rococo wasm to run diff --git a/javascript/packages/orchestrator/src/test-runner/assertions.ts b/javascript/packages/orchestrator/src/test-runner/assertions.ts index 3e3f87f5d..6a7908936 100644 --- a/javascript/packages/orchestrator/src/test-runner/assertions.ts +++ b/javascript/packages/orchestrator/src/test-runner/assertions.ts @@ -22,6 +22,8 @@ import { NetworkNode } from "../networkNode"; import { FnArgs } from "../types"; const utilCrypto = require("@polkadot/util-crypto"); +const debug = require("debug")("zombie::test-runner"); + const DEFAULT_INDIVIDUAL_TEST_TIMEOUT = 10; // seconds // helper @@ -296,10 +298,12 @@ const CustomJs = ({ connect, registerParachain, }; - const jsScript = await import(resolvedJsFilePath); let values; try { + // import user defined code + const jsScript = await import(resolvedJsFilePath); + const resp: any = await Promise.race([ Promise.all( nodes.map((node: any) => @@ -323,6 +327,8 @@ const CustomJs = ({ `Error running script: ${file_path!}`, )} \t ${decorators.bright(err.message)}\n`, ); + + debug(err.stack || "can't print the stack"); throw new Error(err); }