mirror of
https://github.com/fluencelabs/avm-runner-background
synced 2025-03-15 13:30:51 +00:00
Negative test cases for AvmRunnerBackground
in nodejs
Negative tests check if AvmRunnerBackground
works correctly in case of misconfigured packages. Integration tests run in nodejs environment. To simulate full development cycle avm-runner-background
is installed locally as if it was taken from npm. This is possible thanks to install-local package. The installation can be simulated by the npm run install:local
command.
Running the tests
First build the avm-runner-background
package.
In $repo_root/avm-runner-background
run:
npm i
./build_runner.sh
npm run build
Then in $repo_root/tests/node-negative
run:
npm install
npm run install:local
npm run test