I renamed cc_tuts
to tutorial
, but other than that, the test/index.js file is identical to this
Here what the console is showing. The previous tutorial, Hello Holo is complete, and the curl command works
[nix-shell:/vagrant/holochain/tutorial]$ hc test
Packaging files for testing to file: "/vagrant/holochain/tutorial/dist/tutorial.dna.json"
> CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && echo $CARGO_TARGET_DIR
"CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && echo $CARGO_TARGET_DIR "
/home/vagrant/target
> CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && cargo build --release --target=wasm32-unknown-unknown --target-dir=$CARGO_TARGET_DIR
"CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && cargo build --release --target=wasm32-unknown-unknown --target-dir=$CARGO_TARGET_DIR"
Finished release [optimized] target(s) in 0.41s
> CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wasm-gc $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wasm
"CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wasm-gc $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wasm"
> CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wasm-opt -Oz --vacuum $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wasm
"CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wasm-opt -Oz --vacuum $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wasm"
(no output file specified, not emitting output)
> CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wasm2wat $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wasm -o $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wat
"CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wasm2wat $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wasm -o $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wat"
> CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wat2wasm $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wat -o $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wasm
"CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wat2wasm $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wat -o $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wasm"
> CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && echo $CARGO_TARGET_DIR
"CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && echo $CARGO_TARGET_DIR "
/home/vagrant/target
> CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && cargo build --release --target=wasm32-unknown-unknown --target-dir=$CARGO_TARGET_DIR
"CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && cargo build --release --target=wasm32-unknown-unknown --target-dir=$CARGO_TARGET_DIR"
Finished release [optimized] target(s) in 0.38s
> CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wasm-gc $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wasm
"CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wasm-gc $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wasm"
> CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wasm-opt -Oz --vacuum $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wasm
"CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wasm-opt -Oz --vacuum $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wasm"
(no output file specified, not emitting output)
> CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wasm2wat $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wasm -o $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wat
"CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wasm2wat $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wasm -o $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wat"
> CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wat2wasm $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wat -o $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wasm
"CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wat2wasm $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wat -o $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wasm"
Created DNA package file at "/vagrant/holochain/tutorial/dist/tutorial.dna.json"
DNA hash: QmWDbxug7rQG3mbxWfAfocw1q2NiPTH2qAvB6WqeWTQdnZ
Installing node_modules
> npm install --silent
"npm install --silent"
Error: command npm install --silent was not successful
[nix-shell:/vagrant/holochain/tutorial]$ hc test
Packaging files for testing to file: "/vagrant/holochain/tutorial/dist/tutorial.dna.json"
> CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && echo $CARGO_TARGET_DIR
"CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && echo $CARGO_TARGET_DIR "
/home/vagrant/target
> CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && cargo build --release --target=wasm32-unknown-unknown --target-dir=$CARGO_TARGET_DIR
"CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && cargo build --release --target=wasm32-unknown-unknown --target-dir=$CARGO_TARGET_DIR"
Finished release [optimized] target(s) in 0.38s
> CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wasm-gc $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wasm
"CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wasm-gc $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wasm"
> CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wasm-opt -Oz --vacuum $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wasm
"CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wasm-opt -Oz --vacuum $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wasm"
(no output file specified, not emitting output)
> CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wasm2wat $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wasm -o $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wat
"CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wasm2wat $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wasm -o $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wat"
> CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wat2wasm $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wat -o $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wasm
"CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wat2wasm $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wat -o $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wasm"
> CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && echo $CARGO_TARGET_DIR
"CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && echo $CARGO_TARGET_DIR "
/home/vagrant/target
> CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && cargo build --release --target=wasm32-unknown-unknown --target-dir=$CARGO_TARGET_DIR
"CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && cargo build --release --target=wasm32-unknown-unknown --target-dir=$CARGO_TARGET_DIR"
Finished release [optimized] target(s) in 0.37s
> CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wasm-gc $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wasm
"CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wasm-gc $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wasm"
> CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wasm-opt -Oz --vacuum $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wasm
"CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wasm-opt -Oz --vacuum $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wasm"
(no output file specified, not emitting output)
> CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wasm2wat $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wasm -o $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wat
"CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wasm2wat $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wasm -o $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wat"
> CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wat2wasm $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wat -o $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wasm
"CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wat2wasm $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wat -o $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/hello.wasm"
Created DNA package file at "/vagrant/holochain/tutorial/dist/tutorial.dna.json"
DNA hash: QmWDbxug7rQG3mbxWfAfocw1q2NiPTH2qAvB6WqeWTQdnZ
Running tests in test/index.js
> node test/index.js
"node test/index.js"
internal/modules/cjs/loader.js:797
throw err;
^
Error: Cannot find module 'tape'
Require stack:
- /vagrant/holochain/tutorial/test/node_modules/@holochain/tryorama/lib/orchestrator.js
- /vagrant/holochain/tutorial/test/node_modules/@holochain/tryorama/lib/index.js
- /vagrant/holochain/tutorial/test/index.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:794:15)
at Function.Module._load (internal/modules/cjs/loader.js:687:27)
at Module.require (internal/modules/cjs/loader.js:849:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/vagrant/holochain/tutorial/test/node_modules/@holochain/tryorama/lib/orchestrator.js:19:23)
at Module._compile (internal/modules/cjs/loader.js:956:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
at Module.load (internal/modules/cjs/loader.js:812:32)
at Function.Module._load (internal/modules/cjs/loader.js:724:14)
at Module.require (internal/modules/cjs/loader.js:849:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/vagrant/holochain/tutorial/test/node_modules/@holochain/tryorama/lib/orchestrator.js',
'/vagrant/holochain/tutorial/test/node_modules/@holochain/tryorama/lib/index.js',
'/vagrant/holochain/tutorial/test/index.js'
]
}
Error: command node test/index.js was not successful